Bug #249988 --> Various offline settings are not getting saved from the offline settings dialog.

Add a  new radio button for "Always start up online" which matches our default value for
offline.startup_state. This fixes an issue where this radio control always comes up without an intial
value because we didn't have a radio for that value.

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2004-08-11 17:18:11 +00:00
parent 8328e638f7
commit d945032b7d
2 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,7 @@
if (!element) break;
var eltType = element.localName;
if (eltType == "radiogroup")
element.selectedItem = element.childNodes[pref.getIntPref(element.getAttribute("prefstring"))];
element.selectedItem = element.getElementsByAttribute('value', pref.getIntPref(element.getAttribute("prefstring")))[0];
else if (eltType == "checkbox")
element.checked = pref.getBoolPref(element.getAttribute("prefstring"));
else if (eltType == "textbox")
@ -97,6 +97,7 @@
prefstring="offline.startup_state">
<radio value="0" label="&radioRememberPrevState;" accesskey="&radioRememberPrevState.accesskey;"/>
<radio value="1" label="&radioAskMe;" accesskey="&radioAskMe.accesskey;"/>
<radio value="2" label="&radioAlwaysOnline;" accesskey="&radioAlwaysOnline.accesskey;"/>
</radiogroup>
<separator/>

View File

@ -7,6 +7,9 @@
<!ENTITY radioRememberPrevState.accesskey "R">
<!ENTITY radioAskMe "Ask me for online state at startup">
<!ENTITY radioAskMe.accesskey "A">
<!ENTITY radioAlwaysOnline "Always start up online">
<!ENTITY radioAlwaysOnline.accesskey "l">
<!ENTITY textGoingOnline "Send unsent messages when going online?">
<!ENTITY radioAutoSend "Yes">
<!ENTITY radioAutoSend.accesskey "Y">