mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-04 00:02:37 +01:00
Fix ajaxviewer.js to solve console on Firefox (#1655)
Mozilla Firefox displays white tile in place of cursor. The reason - function isImageLoaded() always returns true after first load and function checkUpdate() reloads too fast. Suggested fix - in refresh() method state imageLoaded should be reverted to false. This ensures that function checkUpdate() processes only when tile image is loaded.
This commit is contained in:
parent
91f7012b01
commit
6d5c61b7bc
@ -617,6 +617,7 @@ AjaxViewer.prototype = {
|
||||
var img = $(this.img);
|
||||
this.fullImage = fullImage;
|
||||
this.imgUrl=imageUrl;
|
||||
this.imageLoaded = false;
|
||||
|
||||
img.attr('src', imageUrl).load(function() {
|
||||
ajaxViewer.imageLoaded = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user