fix for #64482. we enabled the download headers UI elements when we supposed to disable it, and vice version. sr=bienvenu

This commit is contained in:
sspitzer%netscape.com 2001-01-06 06:28:19 +00:00
Родитель 16bf9e5dd7
Коммит 3448c95bca
2 изменённых файлов: 9 добавлений и 9 удалений

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

@ -103,16 +103,16 @@ function CancelButtonCallback() {
return true;
}
function doCheckboxEnabling() {
var allRadio = document.getElementById("all");
function setupDownloadUI(enable) {
var checkbox = document.getElementById("markread");
var numberFld = document.getElementById("number");
if (allRadio && allRadio.checked) {
checkbox.setAttribute("disabled", "true");
numberFld.setAttribute("disabled", "true");
}
else {
if (enable) {
checkbox.removeAttribute("disabled");
numberFld.removeAttribute("disabled");
}
else {
checkbox.setAttribute("disabled", "true");
numberFld.setAttribute("disabled", "true");
}
}

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

@ -44,10 +44,10 @@ Contributor(s):
<separator class="thin"/>
<box class="indent" orient="vertical">
<radiogroup orient="vertical" id="downloadGroup" autostretch="never">
<radio group="downloadGroup" id="all" value="&all.label;" oncommand="doCheckboxEnabling(this);"/>
<radio group="downloadGroup" id="all" value="&all.label;" oncommand="setupDownloadUI(false);"/>
<separator class="thin"/>
<box autostretch="never" valign="middle">
<radio group="downloadGroup" id="some" checked="true" value="&download.label;" oncommand="doCheckboxEnabling(this);"/>
<radio group="downloadGroup" id="some" checked="true" value="&download.label;" oncommand="setupDownloadUI(true);"/>
<textfield id="number" size="7"/>
<text class="label" value="&headers.label;" />
</box>