i++ передвидул выше а то на выборка при нажатии на колонку происходила не правильно
This commit is contained in:
@ -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+' </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+' </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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user