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

Author: LaMi <[email protected]>
Date:   Mon Feb 15 23:35:22 2010 +0100

Fixed js error in IE due to disallowed var name "class"

---

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

diff --git a/share/frontend/nagvis-js/js/nagvis.js 
b/share/frontend/nagvis-js/js/nagvis.js
index d91e069..8a90f78 100644
--- a/share/frontend/nagvis-js/js/nagvis.js
+++ b/share/frontend/nagvis-js/js/nagvis.js
@@ -909,11 +909,11 @@ function hideStatusMessage() {
  * @return  Object  Returns the div object of the textbox
  * @author  Lars Michelsen <[email protected]>
  */
-function drawNagVisTextbox(id, class, bgColor, borderColor, x, y, z, w, h, 
text, customStyle) {
+function drawNagVisTextbox(id, className, bgColor, borderColor, x, y, z, w, h, 
text, customStyle) {
                var oLabelDiv = document.createElement('div');
                oLabelDiv.setAttribute('id', id);
-               oLabelDiv.setAttribute('class', class);
-               oLabelDiv.setAttribute('className', class);
+               oLabelDiv.setAttribute('class', className);
+               oLabelDiv.setAttribute('className', className);
                oLabelDiv.style.background = bgColor;
                oLabelDiv.style.borderColor = borderColor;
                
@@ -1002,4 +1002,4 @@ function lightenColor(code, rD, gD, bD) {
        
        return "#" + code.toUpperCase();
 }
-       
\ No newline at end of file
+       


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to