Author:   Lars Michelsen <[email protected]>
Date:     Sat Nov 17 22:00:23 2012 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sat Nov 17 22:00:23 2012 +0100

Bugfix: Fixed "img" not defined js error in IE8 (Please note: Zoom
function does not work in IE8 - IE8 event handling seems to be
broken)

---

 ChangeLog                             |    2 ++
 share/frontend/nagvis-js/js/nagvis.js |    5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6b956f3..70b1cf6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@ Core:
 
 Frontend:
   * Hiding HTTP status error messages automatically on next successful request
+  * Bugfix: Fixed "img" not defined js error in IE8 (Please note: Zoom
+    function does not work in IE8 - IE8 event handling seems to be broken)
 
 Geomap:
   * New option source_type to configure a csv file or the used backend as
diff --git a/share/frontend/nagvis-js/js/nagvis.js 
b/share/frontend/nagvis-js/js/nagvis.js
index a61349f..5accefe 100644
--- a/share/frontend/nagvis-js/js/nagvis.js
+++ b/share/frontend/nagvis-js/js/nagvis.js
@@ -1301,7 +1301,9 @@ function zoomHandler(event) {
     // Another IE specific thing: "this" points to the window element,
     // not the raising object
     if(this == window) {
-        var obj = img;
+        if(event.srcElement) {
+            var obj = event.srcElement;
+        }
     } else {
         var obj = this;
     }
@@ -1340,7 +1342,6 @@ function addZoomHandler(oImage) {
         return; // If not zoomed, no handler is needed
     oImage.style.display = 'none';
 
-    var img = oImage;
     addEvent(oImage, 'load', zoomHandler);
     oImage = null;
 }


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to