Save to the selected collection and library

This commit is contained in:
Simon Kornblith 2011-08-25 11:58:13 +00:00
parent 0108570daa
commit cd885c8a24

View File

@ -71,8 +71,8 @@ const Zotero_Lookup = new function () {
var libraryID = null;
var collection = false;
try {
libraryID = window.opener.ZoteroPane.getSelectedLibraryID();
collection = window.opener.ZoteroPane.getSelectedCollection();
libraryID = ZoteroPane_Local.getSelectedLibraryID();
collection = ZoteroPane_Local.getSelectedCollection();
} catch(e) {}
translate.setHandler("itemDone", function(obj, item) {
if(collection) collection.addItem(item.id);