Commit 28f3d0ea authored by Piotr Gawron's avatar Piotr Gawron
Browse files

after active tab is unloaded the first tab is selected as active

parent 0205bf8f
minerva (12.2.1) stable; urgency=medium
* Bug fix: export of reaction colorsi in SBML is properly encoded (COPASI can
read colors properly) (#744)
* Bug fix: removing active plugin didn't switch plugin tab to the next loaded
plugin (#757)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 1 Apr 2019 17:00:00 +0200
......
......@@ -1175,6 +1175,13 @@ GuiUtils.prototype.removeTab = function (abstractGuiElement, panel) {
} else {
logger.warn("Cannot find tab for panel: " + panel);
}
var isActive = $(".nav-tabs > li.active", $(abstractGuiElement.getElement())).length > 0;
if (!isActive) {
var links = $(".nav-tabs > li", $(abstractGuiElement.getElement()));
if (links.length > 0) {
$("a", $(links[0])).click();
}
}
};
/**
......
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