Closes #805, Translation shouldn't create new item in My Publications
And in download overlay, save and switch to My Library if My Publications is selected.
This commit is contained in:
parent
e3033b056e
commit
177dac3fd2
7 changed files with 92 additions and 7 deletions
|
@ -127,7 +127,12 @@ function waitForDialog(onOpen, button='accept', url) {
|
|||
failure = e;
|
||||
}
|
||||
}
|
||||
if (button != 'cancel') {
|
||||
if (button === false) {
|
||||
if (failure) {
|
||||
throw failure;
|
||||
}
|
||||
}
|
||||
else if (button != 'cancel') {
|
||||
let deferred = Zotero.Promise.defer();
|
||||
function acceptWhenEnabled() {
|
||||
// Handle delayed buttons
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue