Module: nagvis
Branch: master
Commit: 00236a5ce9d04677909dcb1ddcc64d7949cacb30
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=00236a5ce9d04677909dcb1ddcc64d7949cacb30

Author: Lars Michelsen <[email protected]>
Date:   Tue Apr 13 23:56:25 2010 +0200

Working arround problem when no pervious state was known in js frontend

---

 .../frontend/nagvis-js/js/NagVisStatefulObject.js  |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js 
b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
index a7b94d5..0569c27 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -132,6 +132,11 @@ var NagVisStatefulObject = NagVisObject.extend({
                } else if(this.last_conf.summary_in_downtime && 
this.last_conf.summary_in_downtime == 1) {
                        lastSubState = 'downtime';
                }
+
+               // If there is no "last state" return true here
+               if(!this.last_conf.summary_state) {
+                       return true;
+               }
                
                var lastWeight = 
oStates[this.last_conf.summary_state][lastSubState];
                


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to