Additional debugging for saving from download overlay
This commit is contained in:
parent
8359db1426
commit
fc0f541ad8
|
@ -63,13 +63,18 @@ var Zotero_DownloadOverlay = new function() {
|
||||||
.getMostRecentWindow("navigator:browser");
|
.getMostRecentWindow("navigator:browser");
|
||||||
var libraryID, collection;
|
var libraryID, collection;
|
||||||
try {
|
try {
|
||||||
if(win.ZoteroPane.getItemGroup().filesEditable) {
|
let itemGroup = win.ZoteroPane.getItemGroup();
|
||||||
|
if (itemGroup.filesEditable) {
|
||||||
libraryID = win.ZoteroPane.getSelectedLibraryID();
|
libraryID = win.ZoteroPane.getSelectedLibraryID();
|
||||||
collection = win.ZoteroPane.getSelectedCollection();
|
collection = win.ZoteroPane.getSelectedCollection();
|
||||||
}
|
}
|
||||||
// TODO: Just show an error instead?
|
// TODO: Just show an error instead?
|
||||||
else {
|
else {
|
||||||
Zotero.debug("Cannot save files to library -- saving to personal library instead");
|
Zotero.debug("libraryID: " + itemGroup.ref.libraryID);
|
||||||
|
Zotero.debug("editable: " + itemGroup.ref.editable);
|
||||||
|
Zotero.debug("filesEditable: " + itemGroup.ref.filesEditable);
|
||||||
|
Zotero.debug("Cannot save files to library " + itemGroup.ref.libraryID
|
||||||
|
+ " -- saving to personal library instead");
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
Zotero.debug(e, 1);
|
Zotero.debug(e, 1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user