From cd885c8a24052d7c436c5175732bf1d34ec152eb Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 25 Aug 2011 11:58:13 +0000 Subject: [PATCH] Save to the selected collection and library --- chrome/content/zotero/lookup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/lookup.js b/chrome/content/zotero/lookup.js index 6497e7dfd..a43d04150 100644 --- a/chrome/content/zotero/lookup.js +++ b/chrome/content/zotero/lookup.js @@ -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);