Module: check_mk
Branch: master
Commit: d2df957304a331e72d39776559817af741caee73
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d2df957304a331…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 17 16:57:50 2012 +0200
Fixed latest IE7 JS fix
---
web/htdocs/js/wato.js | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/web/htdocs/js/wato.js b/web/htdocs/js/wato.js
index 542d1d1..cb14b46 100644
--- a/web/htdocs/js/wato.js
+++ b/web/htdocs/js/wato.js
@@ -145,14 +145,14 @@ function wato_fix_visibility() {
// Prepare current visibility information which is used
// within the attribut validation in wato
// Hidden attributes are not validated at all
- oAttrDisp = document.getElementById("attr_display_" + attrname);
- if (!oAttrDisp){
- var newInput = document.createElement("input");
- newInput.name = "attr_display_" + attrname;
- newInput.id = "attr_display_" + attrname;
- newInput.type = "hidden";
- newInput.className = "text";
- oTr.appendChild(newInput);
+ var oAttrDisp = document.getElementById("attr_display_" +
attrname);
+ if (!oAttrDisp) {
+ var oAttrDisp = document.createElement("input");
+ oAttrDisp.name = "attr_display_" + attrname;
+ oAttrDisp.id = "attr_display_" + attrname;
+ oAttrDisp.type = "hidden";
+ oAttrDisp.className = "text";
+ oTr.appendChild(oAttrDisp);
}
if ( display == "none" ) {
oAttrDisp.value = "0";