From 3ab335a07815014fab03e4a895436fd124982be2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 5 May 2016 02:14:54 -0400 Subject: [PATCH] Don't clear search field when updating items list during sync Fixes #985 --- chrome/content/zotero/xpcom/itemTreeView.js | 6 ++--- test/tests/itemTreeViewTest.js | 28 +++++++++++++++++++-- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index a39972dfad..78195c6951 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -796,12 +796,12 @@ Zotero.ItemTreeView.prototype.notify = Zotero.Promise.coroutine(function* (actio // Otherwise re-run the quick search, which refreshes the item list else { - // For item adds, clear the quicksearch, unless all the new items - // are child items + // For item adds, clear the quicksearch, unless all the new items have skipSelect or are + // child items if (activeWindow && type == 'item') { let clear = false; for (let i=0; i