Define timeout
This commit is contained in:
parent
1a5d87b3b8
commit
80835614d5
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue