Commit 238b71be authored by Piotr Gawron's avatar Piotr Gawron
Browse files

new popover requires destroy method on leave

parent 8c717ba5
......@@ -978,7 +978,12 @@ GuiUtils.prototype.createTabMenuObject = function (params) {
className: params.className,
href: "#" + id,
content: name,
onclick: params.onclick,
onclick: function () {
$(navLink).tab('show');
if (params.onclick) {
return params.onclick;
}
},
xss: false
});
$(navLink).attr("role", "tab");
......
......@@ -159,7 +159,7 @@ LeftPanel.prototype.init = function () {
/**
*
* @param {BioEntity} element
* @param {IdentifiedElement} element
* @returns {Promise}
*/
LeftPanel.prototype.showElementDetails = function (element) {
......
......@@ -122,6 +122,8 @@ describe('AbstractCustomMap', function () {
}).then(function () {
assert.ok(map.getAliasInfoWindowById(alias.getId()));
assert.ok(map.getAliasInfoWindowById(alias.getId()).isOpened());
}).finally(function () {
return map.destroy();
});
});
......@@ -139,6 +141,8 @@ describe('AbstractCustomMap', function () {
}).then(function () {
assert.ok(map.getAliasInfoWindowById(alias.getId()));
assert.ok(map.getAliasInfoWindowById(alias.getId()).isOpened());
}).finally(function () {
return map.destroy();
});
});
});
......
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