Module: check_mk
Branch: master
Commit: e23af4858a1bbb2b1db07854ebf75379e88e6335
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e23af4858a1bbb…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Dec 7 20:21:51 2011 +0100
WATO: js bugfix, for-each loop cycles through array elements again (was index)
---
web/htdocs/js/wato.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/js/wato.js b/web/htdocs/js/wato.js
index 640bd40..de7e593 100644
--- a/web/htdocs/js/wato.js
+++ b/web/htdocs/js/wato.js
@@ -135,8 +135,7 @@ function wato_fix_visibility() {
delete hide_topics[index];
}
}
-
- for (var item in volatile_topics){
+ for each (var item in volatile_topics){
var oTr = document.getElementById("topic_" + item);
if(oTr) {
if(hide_topics.indexOf(item) > -1 )