From c5a40d503b3cf3c7c46e262594a2e1a95ad74b2c Mon Sep 17 00:00:00 2001 From: rmzelle Date: Sun, 8 Mar 2015 17:20:57 -0400 Subject: [PATCH] Add prompt for Remove Item(s) from Collection --- chrome/content/zotero/zoteroPane.js | 8 +++++++- chrome/locale/en-US/zotero/zotero.properties | 7 +++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index c505c5a0b..59bc16851 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1597,6 +1597,12 @@ var ZoteroPane = new function() 'pane.items.delete' + (this.itemsView.selection.count > 1 ? '.multiple' : '') ) }; + var toRemove = { + title: Zotero.getString('pane.items.remove.title'), + text: Zotero.getString( + 'pane.items.remove' + (this.itemsView.selection.count > 1 ? '.multiple' : '') + ) + }; if (itemGroup.isLibrary(true)) { // In library, don't prompt if meta key was pressed @@ -1604,7 +1610,7 @@ var ZoteroPane = new function() } else if (itemGroup.isCollection()) { // In collection, only prompt if trashing - var prompt = force ? toTrash : false; + var prompt = force ? toTrash : toRemove; } else if (itemGroup.isSearch() || itemGroup.isUnfiled() || itemGroup.isDuplicates()) { if (!force) { diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 4e13f370d..a70b08835 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -204,8 +204,11 @@ pane.items.trash.multiple = Are you sure you want to move the selected items to pane.items.delete.title = Delete pane.items.delete = Are you sure you want to delete the selected item? pane.items.delete.multiple = Are you sure you want to delete the selected items? -pane.items.menu.remove = Remove Item from Collection -pane.items.menu.remove.multiple = Remove Items from Collection +pane.items.remove.title = Remove from Collection +pane.items.remove = Are you sure you want to remove the selected item from this collection? +pane.items.remove.multiple = Are you sure you want to remove the selected items from this collection? +pane.items.menu.remove = Remove Item from Collection… +pane.items.menu.remove.multiple = Remove Items from Collection… pane.items.menu.moveToTrash = Move Item to Trash… pane.items.menu.moveToTrash.multiple = Move Items to Trash… pane.items.menu.export = Export Item…