Блокирование закрытия окна tools.js

This commit is contained in:
2020-09-21 12:10:35 +06:00
parent 1190aea0f7
commit df4d14060f
4 changed files with 24 additions and 16 deletions

View File

@ -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);