i++ передвидул выше а то на выборка при нажатии на колонку происходила не правильно

This commit is contained in:
Igor I
2024-08-14 16:50:44 +05:00
parent ec85845d9e
commit 91e8b21d39
10 changed files with 20 additions and 19 deletions

View File

@ -360,7 +360,8 @@ class SRec
id=nodeProp.getAttribute("id");
value=getCdataValue(nodeProp);
value=value.replace(/"/g, """); value=value.replace(/'/g, "\\'");
htmlString+='<tr><td bgColor="'+bgColor+'" onClick="setFilterVal('+this.uid+',\''+id+'\',\''+value+'\',\''+prop_id+'\')" style="cursor: pointer;">'+findFirstNode(nodeProp, '#cdata-section').nodeValue+'&nbsp;</td></tr>'+"\n";
htmlString+='<tr><td onClick="setFilterVal('+this.uid+',\''+id+'\',\''+value+'\',\''+prop_id+'\')" style="cursor:pointer;background-color:'+bgColor+';">'+findFirstNode(nodeProp, '#cdata-section').nodeValue+'&nbsp;</td></tr>'+"\n";
i++;
}
nodeProp=nodeProp.nextSibling;
@ -1296,9 +1297,9 @@ class SRec
};
//when you click on a cell, the sent filter is prefilled with variables in accordance with the id of the pressed line
//in the function we pass the cell id and the column number
td.onclick=function(obj,val1,val2){
td.onclick=function(thiz,val1,val2){
return function(){
obj.callWindow(val1,val2);
thiz.callWindow(val1,val2);
}
}(this,id,colN);
}else
@ -1453,10 +1454,10 @@ class SRec
{
if(nodeCol.nodeName=="column")
{
i++;
if(nodeCol.getAttribute("n")==name){
break;
}
i++;
}
nodeCol = nodeCol.nextSibling;
}