mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 15:51:37 +00:00
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:
parent
8328e638f7
commit
d945032b7d
@ -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/>
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user