diff --git a/mailnews/base/search/resources/content/FilterEditor.xul b/mailnews/base/search/resources/content/FilterEditor.xul
index 9b72bf297c42..9274d277351e 100644
--- a/mailnews/base/search/resources/content/FilterEditor.xul
+++ b/mailnews/base/search/resources/content/FilterEditor.xul
@@ -47,6 +47,7 @@ Contributor(s):
+
diff --git a/mailnews/base/search/resources/content/searchTermOverlay.js b/mailnews/base/search/resources/content/searchTermOverlay.js
index c86ac90da9cb..41cc41124013 100644
--- a/mailnews/base/search/resources/content/searchTermOverlay.js
+++ b/mailnews/base/search/resources/content/searchTermOverlay.js
@@ -45,6 +45,11 @@ var gSearchScope;
var gSearchLessButton;
var gSearchBooleanRadiogroup;
+// cache these so we don't have to hit the string bundle for them
+var gBooleanOrText;
+var gBooleanAndText;
+var gBooleanInitialText;
+
//
function searchTermContainer() {}
@@ -163,12 +168,19 @@ searchTermContainer.prototype = {
var nsIMsgSearchTerm = Components.interfaces.nsIMsgSearchTerm;
-function initializeSearchWidgets() {
+function initializeSearchWidgets()
+{
gSearchBooleanRadiogroup = document.getElementById("booleanAndGroup");
gSearchTermList = document.getElementById("searchTermList");
gSearchLessButton = document.getElementById("less");
if (!gSearchLessButton)
dump("I couldn't find less button!");
+
+ // initialize some strings
+ var bundle = document.getElementById('bundle_search');
+ gBooleanOrText = bundle.getString('orSearchText');
+ gBooleanAndText = bundle.getString('andSearchText');
+ gBooleanInitialText = bundle.getString('initialSearchText');
}
function initializeBooleanWidgets()
@@ -186,6 +198,14 @@ function initializeBooleanWidgets()
var targetElement = gSearchBooleanRadiogroup.getElementsByAttribute("value", targetValue)[0];
gSearchBooleanRadiogroup.selectedItem = targetElement;
+
+ for (var i=1; i