diff --git a/mailnews/news/resources/content/downloadheaders.js b/mailnews/news/resources/content/downloadheaders.js index 1d4d2ca44b33..19afe37d0d9a 100644 --- a/mailnews/news/resources/content/downloadheaders.js +++ b/mailnews/news/resources/content/downloadheaders.js @@ -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"); + } } diff --git a/mailnews/news/resources/content/downloadheaders.xul b/mailnews/news/resources/content/downloadheaders.xul index e3eee1c6ca07..1963287f823a 100644 --- a/mailnews/news/resources/content/downloadheaders.xul +++ b/mailnews/news/resources/content/downloadheaders.xul @@ -44,10 +44,10 @@ Contributor(s): - + - +