Don't clear quicksearch on delete
This commit is contained in:
parent
64455e656e
commit
0dd35b952a
1 changed files with 16 additions and 3 deletions
|
@ -525,11 +525,24 @@ Zotero.ItemTreeView.prototype.notify = function(action, type, ids, extraData)
|
|||
// If quicksearch, re-run it, since the results may have changed
|
||||
else
|
||||
{
|
||||
// If not viewing trash and all items were deleted, ignore modify
|
||||
var allDeleted = true;
|
||||
if (!itemGroup.isTrash()) {
|
||||
var items = Zotero.Items.get(ids);
|
||||
for each(var item in items) {
|
||||
if (!item.deleted) {
|
||||
allDeleted = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!allDeleted) {
|
||||
quicksearch.doCommand();
|
||||
madeChanges = true;
|
||||
sort = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(action == 'add')
|
||||
{
|
||||
// If saved search or trash, just re-run search
|
||||
|
|
Loading…
Reference in a new issue