Author:   Lars Michelsen <[email protected]>
Date:     Mon Dec 17 18:50:36 2012 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Mon Dec 17 18:50:36 2012 +0100

Bugfix: Fixed javascript error when rotations are disabled

---

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

diff --git a/ChangeLog b/ChangeLog
index f35519e..d83a2fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@ Frontend:
     function does not work in IE8 - IE8 event handling seems to be broken)
   * Bugfix: Fixed flickering hover menu on overview page when sidebar opened
   * Bugfix: Fixed background positioning on browser zoomed maps
+  * Bugfix: Fixed javascript error when rotations are disabled
 
 Geomap:
   * New option source_type to configure a csv file or the used backend as
diff --git a/share/frontend/nagvis-js/js/frontend.js 
b/share/frontend/nagvis-js/js/frontend.js
index 38ce652..b492844 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -1485,7 +1485,11 @@ function parseOverviewRotations(aRotationsConf) {
         }
     } else {
         // Hide the rotations container
-        document.getElementById('overviewRotations').style.display = 'none';
+        var container = document.getElementById('overviewRotations');
+        if(container) {
+            container.style.display = 'none';
+            container = null;
+        }
     }
 
     eventlog("worker", "debug", "setOverviewObjects: End setting rotations");


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to