Commit 03fd29ee authored by Piotr Gawron's avatar Piotr Gawron
Browse files

detection of active tab is different in jsdom with the new bootstrap

parent 238b71be
......@@ -975,7 +975,7 @@ GuiUtils.prototype.createTabMenuObject = function (params) {
var navLink = Functions.createElement({
type: "a",
className: params.className,
className: params.className + ' ' + navClass,
href: "#" + id,
content: name,
onclick: function () {
......
......@@ -184,7 +184,7 @@ LeftPanel.prototype.showElementDetails = function (element) {
}).siblings('.ui-dialog-titlebar').css("background", "gray");
}
var openedTabs = $("[name='tabView'] > ul > li.active > a");
var openedTabs = $("[name='tabView'] > ul > li > a.active");
var openTabName = openedTabs[0].innerHTML;
var searchTabName = openedTabs[1].innerHTML;
var isPanelHidden = (self.getElement().style.display === "none");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment