This is an automated email from the ASF dual-hosted git repository. bhaisaab pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/master by this push: new 6d5c61b Fix ajaxviewer.js to solve console on Firefox (#1655) 6d5c61b is described below commit 6d5c61b7bc6083594d2505a50fec9267d4250a87 Author: Tomas Lygutas <tomas.lygu...@oxid-esales.com> AuthorDate: Thu Jul 27 14:46:35 2017 +0300 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. --- systemvm/js/ajaxviewer.js | 1 + 1 file changed, 1 insertion(+) 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 @@ AjaxViewer.prototype = { var img = $(this.img); this.fullImage = fullImage; this.imgUrl=imageUrl; + this.imageLoaded = false; img.attr('src', imageUrl).load(function() { ajaxViewer.imageLoaded = true; -- To stop receiving notification emails like this one, please contact ['"commits@cloudstack.apache.org" <commits@cloudstack.apache.org>'].