diff --git a/chrome/content/zotero/bindings/searchtextbox.xml b/chrome/content/zotero/bindings/searchtextbox.xml
index 9cd55fead8..045d6956b7 100644
--- a/chrome/content/zotero/bindings/searchtextbox.xml
+++ b/chrome/content/zotero/bindings/searchtextbox.xml
@@ -173,4 +173,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/chrome/content/zotero/bindings/zoterosearch.xml b/chrome/content/zotero/bindings/zoterosearch.xml
index 757ef4b671..262726db7c 100644
--- a/chrome/content/zotero/bindings/zoterosearch.xml
+++ b/chrome/content/zotero/bindings/zoterosearch.xml
@@ -90,13 +90,12 @@
var conditionsBox = this.id('conditions');
this.search.removeCondition(id);
- for(var i = 0, len=conditionsBox.childNodes.length; i < len; i++)
- if(conditionsBox.childNodes[i].conditionID == id)
- {
+ for (var i = 0, len=conditionsBox.childNodes.length; i < len; i++){
+ if (conditionsBox.childNodes[i].conditionID == id){
conditionsBox.removeChild(conditionsBox.childNodes[i]);
-
- i = len;
+ break;
}
+ }
conditionsBox.childNodes[0].id('remove').hidden = (conditionsBox.childNodes.length == 1);
]]>
@@ -188,7 +187,7 @@
+