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.
diff --git a/systemvm/js/ajaxviewer.js b/systemvm/js/ajaxviewer.js
index 09fb41a..f8554a5 100644
--- a/systemvm/js/ajaxviewer.js
+++ b/systemvm/js/ajaxviewer.js
@@ -617,6 +617,7 @@
var img = $(this.img);
this.fullImage = fullImage;
this.imgUrl=imageUrl;
+ this.imageLoaded = false;
img.attr('src', imageUrl).load(function() {
ajaxViewer.imageLoaded = true;