Добавил функцию по удалению всех дочерних элементов.
This commit is contained in:
@ -1237,7 +1237,7 @@ class SRec
|
|||||||
let tr = document.createElement('tr');
|
let tr = document.createElement('tr');
|
||||||
tr.onmouseover=function(){ this.style.backgroundColor="var(--btn-color2)"; };
|
tr.onmouseover=function(){ this.style.backgroundColor="var(--btn-color2)"; };
|
||||||
tr.onmouseout=function(val1,val2){return function(){val1.style.backgroundColor=val2;}}(tr,bgColor);
|
tr.onmouseout=function(val1,val2){return function(){val1.style.backgroundColor=val2;}}(tr,bgColor);
|
||||||
tr.setAttribute("id",id+'_'+this.uid);
|
tr.setAttribute("id",''+id+'_'+this.uid);
|
||||||
tr.style.backgroundColor=bgColor;
|
tr.style.backgroundColor=bgColor;
|
||||||
|
|
||||||
//sequential record number
|
//sequential record number
|
||||||
@ -1281,7 +1281,7 @@ class SRec
|
|||||||
else textNode=document.createTextNode("");
|
else textNode=document.createTextNode("");
|
||||||
|
|
||||||
//td.setAttribute("id",id+this.masCL[colN].getAttribute("n")); //so that you can identify each record when you update
|
//td.setAttribute("id",id+this.masCL[colN].getAttribute("n")); //so that you can identify each record when you update
|
||||||
td.setAttribute("id",id+this.masCL[colN].n); //so that you can identify each record when you update
|
td.setAttribute("id",""+id+"_"+this.masCL[colN].getAttribute("n")); //so that you can identify each record when you update
|
||||||
td.appendChild(textNode);
|
td.appendChild(textNode);
|
||||||
//if in the metadata for this column there is a reference object then add a link
|
//if in the metadata for this column there is a reference object then add a link
|
||||||
if (this.masCT[colN]!=null)
|
if (this.masCT[colN]!=null)
|
||||||
@ -1473,7 +1473,7 @@ class SRec
|
|||||||
let pos=this.getColN(col);
|
let pos=this.getColN(col);
|
||||||
if(pos>=0){
|
if(pos>=0){
|
||||||
for(let i=0;i<this.f_nodeData.data.length;i++){
|
for(let i=0;i<this.f_nodeData.data.length;i++){
|
||||||
if(this.f_nodeData.data[i].id=id){
|
if(this.f_nodeData.data[i].id==id){
|
||||||
return this.f_nodeData.data[i].row[pos];
|
return this.f_nodeData.data[i].row[pos];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,13 @@
|
|||||||
|
|
||||||
//var g_translations = {'':''};
|
//var g_translations = {'':''};
|
||||||
|
|
||||||
|
function removeChild(parent){
|
||||||
|
if(parent==null) return;
|
||||||
|
while (parent.firstChild) {
|
||||||
|
parent.removeChild(parent.firstChild);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Массив g_translations подгружается отдельно
|
//Массив g_translations подгружается отдельно
|
||||||
function trt(key)
|
function trt(key)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user