diff --git a/mozilla/browser/components/prefwindow/content/nsPrefWindow.js b/mozilla/browser/components/prefwindow/content/nsPrefWindow.js index 6365d3f8851..b445b85fc46 100644 --- a/mozilla/browser/components/prefwindow/content/nsPrefWindow.js +++ b/mozilla/browser/components/prefwindow/content/nsPrefWindow.js @@ -197,12 +197,12 @@ nsPrefWindow.prototype = var elt = itemObject.localname; var prefattribute = itemObject.prefattribute; if (!prefattribute) { - if (elt == "radiogroup" || elt == "textbox" || elt == "menulist") - prefattribute = "value"; - else if (elt == "checkbox") + if (elt == "checkbox") prefattribute = "checked"; else if (elt == "button") prefattribute = "disabled"; + else + prefattribute = "value"; } var value = itemObject[prefattribute]; @@ -328,12 +328,12 @@ nsPrefWindow.prototype = var prefdefval = prefElements[i].getAttribute( "prefdefval" ); var prefattribute = prefElements[i].getAttribute( "prefattribute" ); if (!prefattribute) { - if (elt == "radiogroup" || elt == "textbox" || elt == "menulist") - prefattribute = "value"; - else if (elt == "checkbox") + if (elt == "checkbox") prefattribute = "checked"; else if (elt == "button") prefattribute = "disabled"; + else + prefattribute = "value"; } var prefvalue = this.getPref( preftype, prefstring ); if( prefvalue == "!/!ERROR_UNDEFINED_PREF!/!" ) diff --git a/mozilla/browser/components/prefwindow/content/pref-connection.xul b/mozilla/browser/components/prefwindow/content/pref-connection.xul index 4d024c41251..27dc5a031a3 100644 --- a/mozilla/browser/components/prefwindow/content/pref-connection.xul +++ b/mozilla/browser/components/prefwindow/content/pref-connection.xul @@ -92,7 +92,7 @@