close ipmort/export annotation after action
This commit is contained in:
parent
38618e2ed2
commit
e5339fd297
2 changed files with 9 additions and 1 deletions
|
@ -102,6 +102,13 @@ pandora.ui.exportAnnotationsDialog = function(options) {
|
|||
$button.wrap($('<a>'));
|
||||
// On wrap, a reference to the link would *not* be the link in the DOM
|
||||
$link = $($button.parent());
|
||||
$link.on({
|
||||
click: function() {
|
||||
setTimeout(() => {
|
||||
that.close()
|
||||
}, 10)
|
||||
}
|
||||
})
|
||||
updateLink();
|
||||
}
|
||||
|
||||
|
|
|
@ -201,10 +201,11 @@ pandora.ui.importAnnotationsDialog = function(options) {
|
|||
pandora.$ui.contentPanel.replaceElement(
|
||||
1, pandora.$ui.item = pandora.ui.item()
|
||||
);
|
||||
that.close();
|
||||
} else {
|
||||
$status.html(Ox._('Import failed.'));
|
||||
enableButtons();
|
||||
}
|
||||
enableButtons();
|
||||
});
|
||||
} else {
|
||||
$status.html(Ox._('Import failed.'));
|
||||
|
|
Loading…
Reference in a new issue