Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
3 merge requests!724Merge 12.2.1,!72312.2.1 into master,!719after active tab is unloaded the first tab is selected as active
Pipeline #9554 passed
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();
}
}
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment