Module: check_mk
Branch: master
Commit: a3cdd7b2166076e32f553af51c2613ab57772cca
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a3cdd7b2166076…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 7 12:24:56 2011 +0100
WATO: JS bugfix when tr not found
---
web/htdocs/js/wato.js | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/js/wato.js b/web/htdocs/js/wato.js
index c27da5c..640bd40 100644
--- a/web/htdocs/js/wato.js
+++ b/web/htdocs/js/wato.js
@@ -138,11 +138,12 @@ function wato_fix_visibility() {
for (var item in volatile_topics){
var oTr = document.getElementById("topic_" + item);
- if( hide_topics.indexOf(item) > -1 ){
- oTr.style.display = "none";
+ if(oTr) {
+ if(hide_topics.indexOf(item) > -1 )
+ oTr.style.display = "none";
+ else
+ oTr.style.display = "";
}
- else
- oTr.style.display = "";
}
}