зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
b7b2365984
Коммит
ccd0b44ec6
|
@ -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/>
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
|
||||
<!ENTITY pane.title "Offline & Disk Space">
|
||||
<!ENTITY rHeader "Offline">
|
||||
|
||||
<!ENTITY textStartUp "When starting up:">
|
||||
<!ENTITY radioRememberPrevState "Remember previous online state">
|
||||
<!ENTITY radioRememberPrevState.accesskey "R">
|
||||
<!ENTITY radioAskMe "Ask me for online state at startup">
|
||||
<!ENTITY radioAskMe.accesskey "A">
|
||||
<!ENTITY textGoingOnline "Send unsent messages when going online?">
|
||||
<!ENTITY radioAutoSend "Yes">
|
||||
<!ENTITY radioAutoSend.accesskey "Y">
|
||||
<!ENTITY radioNotSend "No">
|
||||
<!ENTITY radioNotSend.accesskey "N">
|
||||
<!ENTITY radioAskUnsent "Ask me">
|
||||
<!ENTITY radioAskUnsent.accesskey "s">
|
||||
<!ENTITY textGoingOffline "Download messages for offline use when going offline?">
|
||||
<!ENTITY radioAutoDownload "Yes">
|
||||
<!ENTITY radioAutoDownload.accesskey "e">
|
||||
<!ENTITY radioNotDownload "No">
|
||||
<!ENTITY radioNotDownload.accesskey "o">
|
||||
<!ENTITY radioAskDownload "Ask me">
|
||||
<!ENTITY radioAskDownload.accesskey "k">
|
||||
<!ENTITY Diskspace "Disk Space">
|
||||
<!ENTITY offlineCompact.label "Compact folders when it will save over">
|
||||
<!ENTITY offlineCompact.accesskey "C">
|
||||
<!ENTITY kb.label "KB">
|
Загрузка…
Ссылка в новой задаче