зеркало из https://github.com/mozilla/pjs.git
Bug 148840: work around checkbox binding not being available at onload the first time the dialog is opened.
This commit is contained in:
Родитель
4aafdc81cd
Коммит
8018880f5b
|
@ -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";
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче