Module: check_mk
Branch: master
Commit: be2d247275c4966c3079a09cf5588524e0619155
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=be2d247275c496…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 6 10:43:38 2013 +0100
Fix again the toggle button visibility problem
---
web/htdocs/js/checkmk.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index cc329ea..0d9b91f 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1437,8 +1437,7 @@ function unhide_context_buttons(oA)
var oTd = oA.parentNode.parentNode;
for (var i in oTd.childNodes) {
oNode = oTd.childNodes[i];
- if (oNode.tagName == "DIV" && oNode.id != "toggle"
- && oNode.id.substr(oNode.id.length - 4) != "_off")
+ if (oNode.tagName == "DIV" && !has_class(oNode,
"togglebutton"))
oNode.style.display = "";
}
oA.parentNode.style.display = "none";