Author:   Lars Michelsen <[email protected]>
Date:     Tue Apr 26 18:28:19 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Tue Apr 26 18:28:19 2011 +0200

Fixed textbox drawing in IE

---

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

diff --git a/share/frontend/nagvis-js/js/nagvis.js 
b/share/frontend/nagvis-js/js/nagvis.js
index 225d93d..428710f 100644
--- a/share/frontend/nagvis-js/js/nagvis.js
+++ b/share/frontend/nagvis-js/js/nagvis.js
@@ -947,6 +947,8 @@ function drawNagVisTextbox(id, className, bgColor, 
borderColor, x, y, z, w, h, t
                // Split up the coustom style string to apply the attributes
                var aStyle = customStyle.split(';');
                for(var i in aStyle) {
+                       if(typeof(aStyle[i]) !== 'string')
+                           continue;
                        var aOpt = aStyle[i].split(':');
                        
                        if(aOpt[0] && aOpt[0] != '' && aOpt[1] && aOpt[1] != 
'') {
@@ -964,7 +966,9 @@ function drawNagVisTextbox(id, className, bgColor, 
borderColor, x, y, z, w, h, t
                                
                                oLabelSpan.style[sKey] = aOpt[1];
                        }
+                       aOpt = null;
                }
+               aStyle = null;
        }
        
        oLabelSpan.innerHTML = text;


------------------------------------------------------------------------------
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