From bc47b6b17171a453958a669f0f53e873bca4253b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 11 Oct 2016 23:55:17 -0400 Subject: [PATCH] Reset Collection search condition menu on library change Reported here: https://github.com/zotero/zotero/issues/145#issuecomment-252678872 --- .../content/zotero/bindings/zoterosearch.xml | 17 +++++- test/tests/advancedSearchTest.js | 60 +++++++++++++++++++ 2 files changed, 75 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/bindings/zoterosearch.xml b/chrome/content/zotero/bindings/zoterosearch.xml index 34ad8ee54..092d91419 100644 --- a/chrome/content/zotero/bindings/zoterosearch.xml +++ b/chrome/content/zotero/bindings/zoterosearch.xml @@ -178,6 +178,8 @@ if (!this.searchRef.id) { this.searchRef.libraryID = libraryID; } + + [...this.id('conditions').childNodes].forEach(x => x.onLibraryChange()); ]]> @@ -448,12 +450,13 @@ + - + + + + +