www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 0f965b0de6840bd313a2aadebc24114cc8274b9f
parent 57881ff5874a619d8cae5f9447989ec07fb31de1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 14 Jul 2017 01:06:57 -0400

Fix collection context-menu options broken in 02774ac6f

E.g., selective sync

Diffstat:
Mchrome/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 @@ -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);