Bug 148840: work around checkbox binding not being available at onload the first time the dialog is opened.

This commit is contained in:
jaggernaut%netscape.com 2007-05-05 04:35:46 +00:00
Родитель 4aafdc81cd
Коммит 8018880f5b
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -156,7 +156,7 @@ function Startup()
break;
case "addGroup,group":
document.getElementById("showaddgroup").setAttribute("hidden", "false");
gCB_AddGroup.checked = true;
gCB_AddGroup.setAttribute("checked", "true");
setupFields();
toggleGroup();
sizeToFit();
@ -334,7 +334,7 @@ function toggleGroup()
temp = gOldURLValue;
gOldURLValue = gFld_URL.value;
gFld_URL.value = temp;
gFld_URL.disabled = gCB_AddGroup.checked;
gFld_URL.disabled = gCB_AddGroup.getAttribute("checked") == "true";
gFld_Name.select();
gFld_Name.focus();
@ -344,5 +344,5 @@ function toggleGroup()
function addingGroup()
{
const showAddGroup = document.getElementById("showaddgroup");
return showAddGroup.getAttribute("hidden") != "true" && gCB_AddGroup.checked;
return showAddGroup.getAttribute("hidden") != "true" && gCB_AddGroup.getAttribute("checked") == "true";
}