fix for #23661, we were being overly aggressive about hiding controls using hidefor=

This commit is contained in:
alecf%netscape.com 2000-06-08 02:17:18 +00:00
Родитель 276931ce74
Коммит 3c564dd0be
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -66,7 +66,7 @@ function hideShowControls(serverType)
// skip generic server/identity things
var hideFor = control.getAttribute("hidefor");
if (!hideFor &&
if ((!hideFor || hideFor == "") &&
(controlType == "server" ||
controlType == "identity")) continue;
@ -76,7 +76,9 @@ function hideShowControls(serverType)
// hide unsupported server type
if (controlType != serverType ||
if ((controlType != "server" &&
controlType != "identity" &&
controlType != serverType) ||
hideFor == serverType) {
box.setAttribute("hidden", "true");
}

Просмотреть файл

@ -47,10 +47,10 @@
<box id="serverPrefContainer" orient="vertical">
<checkbox wsm_persist="true" id="server.isSecure" value="&isSecure.label;"/>
<!--
<checkbox wsm_persist="true" id="server.rememberPassword" hidefor="nntp"
value="&savePassword.label;"/>
-->
<box orient="horizontal">
<checkbox wsm_persist="true" id="server.doBiff" value="&biffStart.label;"/>
<textfield wsm_persist="true" id="server.biffMinutes" size="3"/>