Skip to content

Commit

Permalink
7985 FIX IE: Some context buttons were not toggled correctly in some …
Browse files Browse the repository at this point in the history
…views

When using IE/Edge it could happen that, for example on the service detail page, not all context
buttons were toggled as expected.

Change-Id: Id4587dfd2b76e36fa9e86087e99b1ca28c561028
  • Loading branch information
LarsMichelsen committed Jul 24, 2019
1 parent de2d79d commit e496d2f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
11 changes: 11 additions & 0 deletions .werks/7985
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Title: IE: Some context buttons were not toggled correctly in some views
Level: 1
Component: multisite
Compatible: compat
Edition: cre
Version: 1.5.0p20
Date: 1563973162
Class: fix

When using IE/Edge it could happen that, for example on the service detail page, not all context
buttons were toggled as expected.
16 changes: 8 additions & 8 deletions web/htdocs/js/checkmk.js
Original file line number Diff line number Diff line change
Expand Up @@ -1975,16 +1975,16 @@ function count_context_button(oA)
return AJAX.responseText;
}

function unhide_context_buttons(oA)
function unhide_context_buttons(toggle_button)
{
var oNode;
var oTd = oA.parentNode.parentNode;
for (var i in oTd.children) {
oNode = oTd.children[i];
if (oNode.tagName == "DIV" && !has_class(oNode, "togglebutton"))
oNode.style.display = "";
var cells = toggle_button.parentNode.parentNode;
var children = cells.children;
for (var i = 0; i < children.length; i++) {
var node = children[i];
if (node.tagName == "DIV" && !has_class(node, "togglebutton"))
node.style.display = "";
}
oA.parentNode.style.display = "none";
toggle_button.parentNode.style.display = "none";
}

//#.
Expand Down

0 comments on commit e496d2f

Please sign in to comment.