Added non-caching tail onto image retrieval.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@881 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-02-20 09:48:14 +00:00
parent 9a33ab5e2e
commit 1f28c1b861
2 changed files with 6 additions and 4 deletions

View File

@ -75,8 +75,9 @@ function fetchImage()
{ {
window.parent.MontageFetch<?= $monitor['Id'] ?>.location.reload( true ); window.parent.MontageFetch<?= $monitor['Id'] ?>.location.reload( true );
zm_image = new Image(); var now = new Date();
zm_image.src = '<?= ZM_DIR_IMAGES.'/'.$monitor['Name'] ?>.jpg'; var zm_image = new Image();
zm_image.src = '<?= ZM_DIR_IMAGES.'/'.$monitor['Name'] ?>.jpg?'+now.getTime();
document['zmImage'].src = zm_image.src; document['zmImage'].src = zm_image.src;
} }

View File

@ -72,8 +72,9 @@ function fetchImage()
{ {
window.parent.MonitorFetch<?= $monitor['Id'] ?>.location.reload( true ); window.parent.MonitorFetch<?= $monitor['Id'] ?>.location.reload( true );
zm_image = new Image(); var now = new Date();
zm_image.src = '<?= ZM_DIR_IMAGES.'/'.$monitor['Name'] ?>.jpg'; var zm_image = new Image();
zm_image.src = '<?= ZM_DIR_IMAGES.'/'.$monitor['Name'] ?>.jpg?'+now.getTime();
document['zmImage'].src = zm_image.src; document['zmImage'].src = zm_image.src;
} }