Блокирование закрытия окна tools.js
This commit is contained in:
@ -312,7 +312,7 @@ class EdtRec
|
||||
if(nList!=null)
|
||||
{
|
||||
nodeProp.field = new TCheckboxListField(nodeProp.getAttribute("n"));
|
||||
nCheckbox = nList.firstChild;
|
||||
let nCheckbox = nList.firstChild;
|
||||
while (nCheckbox!=null) {
|
||||
if(nCheckbox.nodeName=="option") {
|
||||
nodeProp.field.addCheckbox(nCheckbox.getAttribute("n"), nCheckbox.getAttribute("d"));
|
||||
@ -1513,7 +1513,7 @@ class EdtRec
|
||||
};
|
||||
}
|
||||
|
||||
//Поле с галочкой
|
||||
//Поле с галочкой (или галочками)
|
||||
class TCheckboxListField
|
||||
{
|
||||
constructor(name)
|
||||
@ -1529,7 +1529,7 @@ class TCheckboxListField
|
||||
this.array.push(input);
|
||||
|
||||
input.setAttribute("type", "checkbox");
|
||||
input.setAttribute("value", nCheckbox.getAttribute("n"));
|
||||
input.setAttribute("value", value);
|
||||
|
||||
var label = document.createElement("Label");
|
||||
// label.setAttribute("for",id_from_input);
|
||||
|
||||
Reference in New Issue
Block a user