Author:   Lars Michelsen <[email protected]>
Date:     Tue Apr 26 21:15:20 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Tue Apr 26 21:15:20 2011 +0200

Improved object update check

---

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

diff --git a/share/frontend/nagvis-js/js/frontend.js 
b/share/frontend/nagvis-js/js/frontend.js
index 3857eea..c9cec03 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -723,7 +723,8 @@ function updateObjects(aMapObjectInformations, sType) {
                // Some objects need to be reloaded even when no state changed 
(perfdata or 
                // output could have changed since last update). Basically this 
is only
                // needed for gadgets and/or labels with [output] or [perfdata] 
macros
-               if(!oMapObjects[objectId].stateChanged() && 
oMapObjects[objectId].outputOrPerfdataChanged()) {
+               if((sType === 'map' || sType === 'automap')
+                  && !oMapObjects[objectId].stateChanged() && 
oMapObjects[objectId].outputOrPerfdataChanged()) {
                        // Reparse object to map (only for maps!)
                        // No else for overview here, senseless!
                        if(sType === 'map') {


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to