From 80835614d5a44f47dc0ce824badaea7ea1564095 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 19 Apr 2021 15:49:06 -0400 Subject: [PATCH] Define timeout --- web/skins/classic/js/skin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/js/skin.js b/web/skins/classic/js/skin.js index a84d2978c..d7f6da27e 100644 --- a/web/skins/classic/js/skin.js +++ b/web/skins/classic/js/skin.js @@ -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';