Fix collection context-menu options broken in 02774ac6f

E.g., selective sync
This commit is contained in:
Dan Stillman 2017-07-14 01:06:57 -04:00
parent 57881ff587
commit 0f965b0de6

View file

@ -2349,7 +2349,7 @@ var ZoteroPane = new function()
label: Zotero.getString('sync.sync'), label: Zotero.getString('sync.sync'),
oncommand: () => { oncommand: () => {
Zotero.Sync.Runner.sync({ Zotero.Sync.Runner.sync({
libraries: [libraryID], libraries: [this.getSelectedLibraryID()],
}); });
} }
}, },
@ -2380,13 +2380,13 @@ var ZoteroPane = new function()
{ {
id: "showDuplicates", id: "showDuplicates",
oncommand: () => { oncommand: () => {
this.setVirtual(libraryID, 'duplicates', true); this.setVirtual(this.getSelectedLibraryID(), 'duplicates', true);
} }
}, },
{ {
id: "showUnfiled", id: "showUnfiled",
oncommand: () => { oncommand: () => {
this.setVirtual(libraryID, 'unfiled', true); this.setVirtual(this.getSelectedLibraryID(), 'unfiled', true);
} }
}, },
{ {
@ -2436,7 +2436,7 @@ var ZoteroPane = new function()
id: "removeLibrary", id: "removeLibrary",
label: Zotero.getString('pane.collections.menu.remove.library'), label: Zotero.getString('pane.collections.menu.remove.library'),
oncommand: () => { oncommand: () => {
let library = Zotero.Libraries.get(libraryID); let library = Zotero.Libraries.get(this.getSelectedLibraryID());
let ps = Services.prompt; let ps = Services.prompt;
let buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING) let buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING)
+ (ps.BUTTON_POS_1) * (ps.BUTTON_TITLE_CANCEL); + (ps.BUTTON_POS_1) * (ps.BUTTON_TITLE_CANCEL);