www

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

commit 36371630b56b2ce79b6587b57d9f64b42ffc6537
parent 46531a4c69f8eef706b6986fb51be7e634b03d97
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 26 Jul 2017 05:33:24 -0400

Restore auto-expanding of search matches except in My Publications

Saved searches and the trash should automatically expand items to show
matching child items, but that was broken in d47275210.

Diffstat:
Mchrome/content/zotero/xpcom/itemTreeView.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js @@ -116,7 +116,10 @@ Zotero.ItemTreeView.prototype.setTree = async function (treebox) { return; } - await this.refresh(true); + // Don't expand to show search matches in My Publications + var skipExpandMatchParents = this.collectionTreeRow.isPublications(); + + await this.refresh(skipExpandMatchParents); if (!this._treebox.treeBody) { return; }