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:
Tomas Lygutas 2017-07-27 14:46:35 +03:00 committed by Rohit Yadav
parent 91f7012b01
commit 6d5c61b7bc

View File

@ -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;