diff --git a/mailnews/base/prefs/resources/content/pref-mailnews.xul b/mailnews/base/prefs/resources/content/pref-mailnews.xul index a5e710fbc7e9..f071f84621f6 100644 --- a/mailnews/base/prefs/resources/content/pref-mailnews.xul +++ b/mailnews/base/prefs/resources/content/pref-mailnews.xul @@ -92,27 +92,29 @@ Contributor(s): - + - + + + + + - - - + diff --git a/mailnews/base/prefs/resources/locale/en-US/pref-mailnews.dtd b/mailnews/base/prefs/resources/locale/en-US/pref-mailnews.dtd index 442e3df55cfa..e07523d631e9 100644 --- a/mailnews/base/prefs/resources/locale/en-US/pref-mailnews.dtd +++ b/mailnews/base/prefs/resources/locale/en-US/pref-mailnews.dtd @@ -33,7 +33,7 @@ Rights Reserved. - + diff --git a/mailnews/base/resources/content/mailWindow.js b/mailnews/base/resources/content/mailWindow.js index 53877ce9453a..b5989627df76 100644 --- a/mailnews/base/resources/content/mailWindow.js +++ b/mailnews/base/resources/content/mailWindow.js @@ -628,7 +628,7 @@ function ShowHideToolBarButtons() if (prefArray && (prefCount.value > 0)) { for (var i=0;i < prefCount.value;i++) { - hideButton(prefArray[i],prefBranch.getBoolPref(prefArray[i])); + document.getElementById("button-" + prefArray[i]).hidden = !(prefBranch.getBoolPref(prefArray[i])); } } } @@ -662,13 +662,7 @@ const gMailToolBarPrefListener = // verify that we're changing a button pref if (topic != "nsPref:changed") return; - var buttonName = prefName.substr(this.domain.length+1); - hideButton(buttonName,pref.getBoolPref(prefName)) + document.getElementById("button-" + prefName.substr(this.domain.length+1)).hidden = !(pref.getBoolPref(prefName)); } }; - -function hideButton(name,show) -{ - document.getElementById("button-" + name).setAttribute("hidden", show ? "false":"true"); -} diff --git a/mailnews/base/resources/content/mailWindowOverlay.xul b/mailnews/base/resources/content/mailWindowOverlay.xul index 84e3fee60088..bd35cbad68a6 100644 --- a/mailnews/base/resources/content/mailWindowOverlay.xul +++ b/mailnews/base/resources/content/mailWindowOverlay.xul @@ -1064,7 +1064,7 @@ Rights Reserved. oncommand="goToggleToolbar('searchBox', 'menu_showSearchToolbar'); SearchBarToggled();" checked="true"/> - + -