From 989e79f9b193a5c99100d007eab66a4a44110219 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 5 Nov 2006 09:34:03 +0000 Subject: [PATCH] Fix small problem in search dialog with saved string representation of isInLast value persisting to a regular textbox of another condition --- chrome/content/zotero/bindings/zoterosearch.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/bindings/zoterosearch.xml b/chrome/content/zotero/bindings/zoterosearch.xml index cb794bf212..06fa306dc4 100644 --- a/chrome/content/zotero/bindings/zoterosearch.xml +++ b/chrome/content/zotero/bindings/zoterosearch.xml @@ -319,7 +319,7 @@ } // Textbox + units dropdown for isInTheLast operator - if (operatorsList.value=='isInTheLast') + else if (operatorsList.value=='isInTheLast') { this.id('valuefield').hidden = true; this.id('valuemenu').hidden = true; @@ -329,6 +329,9 @@ // Textbox else { + if (!this.id('value-date-age').hidden){ + this.value = ''; + } this.id('valuefield').hidden = false; this.id('valuemenu').hidden = true; this.id('value-date-age').hidden = true;