fix for bug 41987. r=alecf

This commit is contained in:
gayatrib%netscape.com 2000-08-14 22:03:23 +00:00
parent 071c524342
commit ba03922cfa
2 changed files with 12 additions and 2 deletions

View File

@ -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 {

View File

@ -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"