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:
Dan Stillman 2015-12-10 01:09:40 -05:00
parent e3033b056e
commit 177dac3fd2
7 changed files with 92 additions and 7 deletions

View file

@ -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