Define timeout

This commit is contained in:
Isaac Connor 2021-04-19 15:49:06 -04:00
parent 1a5d87b3b8
commit 80835614d5
1 changed files with 3 additions and 2 deletions

View File

@ -907,8 +907,9 @@ function manageShutdownBtns(element) {
.fail(logAjaxFail);
}
var thumbnail_timeout;
function thumbnail_onmouseover(event) {
timeout = setTimeout(function() {
thumbnail_timeout = setTimeout(function() {
var img = event.target;
var imgClass = ( currentView == 'console' ) ? 'zoom-console' : 'zoom';
var imgAttr = ( currentView == 'frames' ) ? 'full_img_src' : 'stream_src';
@ -919,7 +920,7 @@ function thumbnail_onmouseover(event) {
}
function thumbnail_onmouseout(event) {
clearTimeout(timeout);
clearTimeout(thumbnail_timeout);
var img = event.target;
var imgClass = ( currentView == 'console' ) ? 'zoom-console' : 'zoom';
var imgAttr = ( currentView == 'frames' ) ? 'img_src' : 'still_src';