mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
fix for bug 41987. r=alecf
This commit is contained in:
parent
071c524342
commit
ba03922cfa
@ -76,10 +76,20 @@ function hideShowControls(serverType)
|
||||
|
||||
// hide unsupported server type
|
||||
|
||||
// adding support for hiding multiple server types using hideFor="server1,server2"
|
||||
var hideForBool = false;
|
||||
var hideForTokens = hideFor.split(",");
|
||||
for (j = 0; j < hideForTokens.length; j++) {
|
||||
if (hideForTokens[j] == serverType) {
|
||||
hideForBool = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ((controlType != "server" &&
|
||||
controlType != "identity" &&
|
||||
controlType != serverType) ||
|
||||
hideFor == serverType) {
|
||||
hideForBool) {
|
||||
box.setAttribute("hidden", "true");
|
||||
}
|
||||
else {
|
||||
|
@ -59,7 +59,7 @@
|
||||
<textfield wsm_persist="true" id="server.biffMinutes" size="3"/>
|
||||
<text class="label" for="server.biffMinutes" value="&biffEnd.label;"/>
|
||||
</box>
|
||||
<checkbox style="margin-left: 2em" hidefor="nntp"
|
||||
<checkbox style="margin-left: 2em" hidefor="imap,nntp"
|
||||
wsm_persist="true" id="server.downloadOnBiff"
|
||||
value="&downloadOnBiff.label;"/>
|
||||
<checkbox wsm_persist="true" id="pop3.leaveMessagesOnServer"
|
||||
|
Loading…
Reference in New Issue
Block a user