close ipmort/export annotation after action

This commit is contained in:
j 2025-01-23 16:34:31 +05:30
parent 38618e2ed2
commit e5339fd297
2 changed files with 9 additions and 1 deletions

View file

@ -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();
}

View file

@ -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.'));