Module: check_mk
Branch: master
Commit: add7cf059c9b89f8c39dfa1da75c233d0e55c4fd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=add7cf059c9b89…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 4 15:18:10 2013 +0100
Fix visibility of hidden view option buttons
---
web/htdocs/js/checkmk.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 9219b81..cc329ea 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1437,7 +1437,8 @@ 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")
+ if (oNode.tagName == "DIV" && oNode.id != "toggle"
+ && oNode.id.substr(oNode.id.length - 4) != "_off")
oNode.style.display = "";
}
oA.parentNode.style.display = "none";