зеркало из https://github.com/mozilla/gecko-dev.git
fix if "limit message size" check box is disabled, disabled the "size" text area and do some additional cleanup. bug 74044. sr=sspitzer
This commit is contained in:
Родитель
4e13219605
Коммит
36ce9910cd
|
@ -30,6 +30,7 @@ function onInit()
|
|||
|
||||
setupBiffUI();
|
||||
setupMailOnServerUI();
|
||||
setupLimitMessageSizeUI();
|
||||
}
|
||||
|
||||
function onPreInit(account, accountValues)
|
||||
|
@ -191,3 +192,10 @@ function setupMailOnServerUI()
|
|||
|
||||
document.getElementById("pop3.deleteMailLeftOnServer").disabled = !checked;
|
||||
}
|
||||
|
||||
function setupLimitMessageSizeUI()
|
||||
{
|
||||
var checked = document.getElementById("server.limitMessageSize").checked;
|
||||
|
||||
document.getElementById("server.maxMessageSize").setAttribute("disabled", !checked);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ Communications Corporation. Portions created by Netscape are
|
|||
Rights Reserved.
|
||||
|
||||
Contributors:
|
||||
hwaara@chello.se
|
||||
Håkan Waara <hwaara@chello.se>
|
||||
|
||||
-->
|
||||
|
||||
|
@ -62,11 +62,13 @@ Contributors:
|
|||
</row>
|
||||
<row autostretch="never">
|
||||
<box iscontrolcontainer="true" autostretch="never">
|
||||
<text hidable="true" hidefor="nntp" class="label" id="userNameLabel" value="&userName.label;"/>
|
||||
<text hidable="true" hidefor="nntp" class="label" id="userNameLabel"
|
||||
value="&userName.label;"/>
|
||||
</box>
|
||||
<box iscontrolcontainer="true" autostretch="never">
|
||||
<!-- XXX: when #14295 is fixed, remove disabled="true" -->
|
||||
<textbox hidable="true" hidefor="nntp" wsm_persist="true" disabled="true" size="25" id="server.username"/>
|
||||
<textbox hidable="true" hidefor="nntp" wsm_persist="true" disabled="true"
|
||||
size="25" id="server.username"/>
|
||||
</box>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -85,16 +87,22 @@ Contributors:
|
|||
<titledbox>
|
||||
<label value="&serverSettings.label;"/>
|
||||
<box orient="vertical" flex="1">
|
||||
<checkbox iscontrolcontainer="true" hidable="true" wsm_persist="true" id="server.isSecure" label="&isSecure.label;" hidefor="pop3" oncommand="secureSelect();"/>
|
||||
<checkbox iscontrolcontainer="true" hidable="true" wsm_persist="true" id="server.loginAtStartUp" hidefor="nntp" label="&loginAtStartup.label;"/>
|
||||
<checkbox iscontrolcontainer="true" hidable="true" wsm_persist="true" id="server.isSecure"
|
||||
label="&isSecure.label;" hidefor="pop3" oncommand="secureSelect();"/>
|
||||
<checkbox iscontrolcontainer="true" hidable="true" wsm_persist="true"
|
||||
id="server.loginAtStartUp" hidefor="nntp"
|
||||
label="&loginAtStartup.label;"/>
|
||||
<!--
|
||||
<checkbox iscontrolcontainer="true" hidable="true" wsm_persist="true" id="server.rememberPassword" hidefor="nntp"
|
||||
value="&savePassword.label;"/>
|
||||
-->
|
||||
<box orient="horizontal" autostretch="never">
|
||||
<checkbox wsm_persist="true" id="server.doBiff" label="&biffStart.label;" oncommand="setupBiffUI();"/>
|
||||
<textbox wsm_persist="true" id="server.biffMinutes" size="3" observes="broadcaster_doBiff"/>
|
||||
<text class="label" id="biffEnd" for="server.biffMinutes" value="&biffEnd.label;" observes="broadcaster_doBiff"/>
|
||||
<checkbox wsm_persist="true" id="server.doBiff" label="&biffStart.label;"
|
||||
oncommand="setupBiffUI();"/>
|
||||
<textbox wsm_persist="true" id="server.biffMinutes" size="3"
|
||||
observes="broadcaster_doBiff"/>
|
||||
<text class="label" id="biffEnd" for="server.biffMinutes" value="&biffEnd.label;"
|
||||
observes="broadcaster_doBiff"/>
|
||||
</box>
|
||||
<!-- POP3 -->
|
||||
<box orient="vertical" iscontrolcontainer="true" autostretch="never">
|
||||
|
@ -109,7 +117,8 @@ Contributors:
|
|||
label="&deleteOnServer.label;"/>
|
||||
</box>
|
||||
<box iscontrolcontainer="true" autostretch="never">
|
||||
<checkbox hidable="true" hidefor="imap,nntp" wsm_persist="true" label="&maxMessageSizePrefix.label;" id="server.limitMessageSize"/>
|
||||
<checkbox hidable="true" hidefor="imap,nntp" wsm_persist="true" label="&maxMessageSizePrefix.label;"
|
||||
oncommand="setupLimitMessageSizeUI();" id="server.limitMessageSize"/>
|
||||
<textbox wsm_persist="true" id="server.maxMessageSize" size="3"/>
|
||||
<text value="&maxMessageSizePostfix.label;" for="server.limitMessageSize" class="label"/>
|
||||
</box>
|
||||
|
@ -163,9 +172,12 @@ Contributors:
|
|||
<titledbox orient="vertical">
|
||||
<label class="header label" value="&abbreviate.label;"/>
|
||||
|
||||
<radiogroup hidable="true" hidefor="pop3,imap" orient="vertical" wsm_persist="true" id="nntp.abbreviate">
|
||||
<radio group="nntp.abbreviate" wsm_persist="true" value="true" label="&abbreviateOn.label;"/>
|
||||
<radio group="nntp.abbreviate" wsm_persist="true" value="false" label="&abbreviateOff.label;"/>
|
||||
<radiogroup hidable="true" hidefor="pop3,imap" orient="vertical" wsm_persist="true"
|
||||
id="nntp.abbreviate">
|
||||
<radio group="nntp.abbreviate" wsm_persist="true" value="true"
|
||||
label="&abbreviateOn.label;"/>
|
||||
<radio group="nntp.abbreviate" wsm_persist="true" value="false"
|
||||
label="&abbreviateOff.label;"/>
|
||||
</radiogroup>
|
||||
</titledbox>
|
||||
</box>
|
||||
|
|
Загрузка…
Ссылка в новой задаче