Prevent conflicting file downloads on double double-click
This commit is contained in:
parent
60810ea0a0
commit
44507ce20b
|
@ -4053,7 +4053,7 @@ var ZoteroPane = new function()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
this.viewAttachment = Zotero.Promise.coroutine(function* (itemIDs, event, noLocateOnMissing, forceExternalViewer) {
|
this.viewAttachment = Zotero.serial(Zotero.Promise.coroutine(function* (itemIDs, event, noLocateOnMissing, forceExternalViewer) {
|
||||||
// If view isn't editable, don't show Locate button, since the updated
|
// If view isn't editable, don't show Locate button, since the updated
|
||||||
// path couldn't be sent back up
|
// path couldn't be sent back up
|
||||||
if (!this.collectionsView.editable) {
|
if (!this.collectionsView.editable) {
|
||||||
|
@ -4138,14 +4138,13 @@ var ZoteroPane = new function()
|
||||||
// check if unchanged?
|
// check if unchanged?
|
||||||
// maybe not necessary, since we'll get an error if there's an error
|
// maybe not necessary, since we'll get an error if there's an error
|
||||||
|
|
||||||
|
|
||||||
Zotero.Notifier.trigger('redraw', 'item', []);
|
Zotero.Notifier.trigger('redraw', 'item', []);
|
||||||
Zotero.debug('downloaded');
|
setTimeout(() => {
|
||||||
Zotero.debug(downloadedItem.id);
|
ZoteroPane_Local.viewAttachment(downloadedItem.id, event, false, forceExternalViewer);
|
||||||
return ZoteroPane_Local.viewAttachment(downloadedItem.id, event, false, forceExternalViewer);
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}));
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user