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

Author: Lars Michelsen <[email protected]>
Date:   Mon Jan  3 01:28:08 2011 +0100

Fixed child displaying in hover menu of services

---

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

diff --git a/share/frontend/nagvis-js/js/hover.js 
b/share/frontend/nagvis-js/js/hover.js
index 164788a..f7bd057 100644
--- a/share/frontend/nagvis-js/js/hover.js
+++ b/share/frontend/nagvis-js/js/hover.js
@@ -268,7 +268,7 @@ function replaceHoverTemplateStaticMacros(oObj, 
sTemplateCode) {
        
        // Replace child section when unwanted
        if((oObj.conf.hover_childs_show && oObj.conf.hover_childs_show != '1')
-                || typeof oObj.conf.num_members == 'undefined' || 
oObj.conf.num_members == 0)
+                || !isset(oObj.conf.num_members) || oObj.conf.num_members == 0)
                oSectionMacros.childs = 
'<!--\\sBEGIN\\schilds\\s-->.+?<!--\\sEND\\schilds\\s-->';
        
        // Loop and replace all unwanted section macros


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to