From 0f965b0de6840bd313a2aadebc24114cc8274b9f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 14 Jul 2017 01:06:57 -0400 Subject: [PATCH] Fix collection context-menu options broken in 02774ac6f E.g., selective sync --- chrome/content/zotero/zoteroPane.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index e67c58bb35..4787224fce 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -2349,7 +2349,7 @@ var ZoteroPane = new function() label: Zotero.getString('sync.sync'), oncommand: () => { Zotero.Sync.Runner.sync({ - libraries: [libraryID], + libraries: [this.getSelectedLibraryID()], }); } }, @@ -2380,13 +2380,13 @@ var ZoteroPane = new function() { id: "showDuplicates", oncommand: () => { - this.setVirtual(libraryID, 'duplicates', true); + this.setVirtual(this.getSelectedLibraryID(), 'duplicates', true); } }, { id: "showUnfiled", oncommand: () => { - this.setVirtual(libraryID, 'unfiled', true); + this.setVirtual(this.getSelectedLibraryID(), 'unfiled', true); } }, { @@ -2436,7 +2436,7 @@ var ZoteroPane = new function() id: "removeLibrary", label: Zotero.getString('pane.collections.menu.remove.library'), oncommand: () => { - let library = Zotero.Libraries.get(libraryID); + let library = Zotero.Libraries.get(this.getSelectedLibraryID()); let ps = Services.prompt; let buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING) + (ps.BUTTON_POS_1) * (ps.BUTTON_TITLE_CANCEL);