www

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

commit df7cd60a432f9e7706761cc61d7e76155f060d57
parent 44a9b84891b8c6fa7897a3a00a397f3c894e32a1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 21 Mar 2015 22:18:06 -0400

Merge pull request #680 from rmzelle/update-remove-from-collection

No prompt for remove if no top-level items are selected
Diffstat:
Mchrome/content/zotero/zoteroPane.js | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -1610,7 +1610,13 @@ var ZoteroPane = new function() var prompt = (force && !fromMenu) ? false : toTrash; } else if (itemGroup.isCollection()) { - // In collection, only prompt if trashing + + // Ignore unmodified action if only child items are selected + if (!force && this.itemsView.getSelectedItems().every(item => !item.isTopLevelItem())) { + return; + } + + // In collection var prompt = force ? toTrash : toRemove; } else if (itemGroup.isSearch() || itemGroup.isUnfiled() || itemGroup.isDuplicates()) {