Author:   Lars Michelsen <[email protected]>
Date:     Tue Oct 23 10:57:01 2012 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Tue Oct 23 10:57:01 2012 +0200

Hiding rotations table on overview page when no rotations configured

---

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

diff --git a/ChangeLog b/ChangeLog
index 69a7fa8..b1bf5cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@ Core:
   * Bugfix: Fixed problem in geomap exception handling
 
 Frontend:
+  * Hiding rotations table on overview page when no rotations configured
   * Bugfix: Re-added "loading..." message on page redering
 
 1.7.2
diff --git a/share/frontend/nagvis-js/js/frontend.js 
b/share/frontend/nagvis-js/js/frontend.js
index f51cc90..a202570 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -1473,15 +1473,13 @@ function parseOverviewRotations(aRotationsConf) {
             oObj = new NagVisRotation(aRotationsConf[i]);
 
             if(oObj !== null) {
-                // Save object to map objects array
-                //aRotations.push(oObj);
-
                 // Parse object to overview
                 oObj.parseOverview();
             }
         }
     } else {
         // Hide the rotations container
+        document.getElementById('overviewRotations').style.display = 'none';
     }
 
     eventlog("worker", "debug", "setOverviewObjects: End setting rotations");


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to