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>'));
|
$button.wrap($('<a>'));
|
||||||
// On wrap, a reference to the link would *not* be the link in the DOM
|
// On wrap, a reference to the link would *not* be the link in the DOM
|
||||||
$link = $($button.parent());
|
$link = $($button.parent());
|
||||||
|
$link.on({
|
||||||
|
click: function() {
|
||||||
|
setTimeout(() => {
|
||||||
|
that.close()
|
||||||
|
}, 10)
|
||||||
|
}
|
||||||
|
})
|
||||||
updateLink();
|
updateLink();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -201,10 +201,11 @@ pandora.ui.importAnnotationsDialog = function(options) {
|
||||||
pandora.$ui.contentPanel.replaceElement(
|
pandora.$ui.contentPanel.replaceElement(
|
||||||
1, pandora.$ui.item = pandora.ui.item()
|
1, pandora.$ui.item = pandora.ui.item()
|
||||||
);
|
);
|
||||||
|
that.close();
|
||||||
} else {
|
} else {
|
||||||
$status.html(Ox._('Import failed.'));
|
$status.html(Ox._('Import failed.'));
|
||||||
|
enableButtons();
|
||||||
}
|
}
|
||||||
enableButtons();
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$status.html(Ox._('Import failed.'));
|
$status.html(Ox._('Import failed.'));
|
||||||
|
|
Loading…
Reference in a new issue