i++ передвидул выше а то на выборка при нажатии на колонку происходила не правильно
This commit is contained in:
@ -144,7 +144,7 @@ class EdtRec
|
||||
str+=' <table class="SEdit" id="eTable'+this.uid+'" border="0px" cellspacing="1" cellpadding="1" style="width: 100%; height: 100%;">';
|
||||
str+=' <caption><b id="caption'+this.uid+'"></b></caption>';
|
||||
str+=' <thead>';
|
||||
str+=' <tr bgcolor="#dadada">';
|
||||
str+=' <tr style="background-color:#dadada;">';
|
||||
str+=' <th style="width:20%">'+trt('Name')+'</th>';
|
||||
str+=' <th style="width:80%">'+trt('Value')+'</th>';
|
||||
str+=' </tr>';
|
||||
@ -935,7 +935,7 @@ class EdtRec
|
||||
let win=new TWin();
|
||||
win.BuildGUI(pageX-10,pageY-10);
|
||||
let str=`
|
||||
<table id="thetable`+win+`" bgcolor="SlateGrey" style="border: 1px solid rgb(99, 99, 99);" width="100%">
|
||||
<table id="thetable`+win+`" style="background-color:SlateGrey;border: 1px solid rgb(99, 99, 99);" width="100%">
|
||||
<caption></caption>
|
||||
<thead><tr><th></th></tr></thead>
|
||||
<tbody><tr><td></td></tr></tbody>
|
||||
@ -1168,7 +1168,7 @@ class EdtRec
|
||||
}else
|
||||
if(count>1) //Display the item selection window.
|
||||
{
|
||||
let htmlString='<table width="100%" bgcolor="whitesmoke">';
|
||||
let htmlString='<table width="100%" style="background-color:whitesmoke;">';
|
||||
nodeProp=nodeType.firstChild;
|
||||
let i=0;
|
||||
while (nodeProp!=null)
|
||||
@ -1182,7 +1182,7 @@ class EdtRec
|
||||
value=value.replace(/"/g, """);
|
||||
value=value.replace(/'/g, "\\'");
|
||||
value=value.replace(/\n/g, " ");
|
||||
htmlString+='<tr><td bgColor="'+bgColor+'" onClick="setPropVal('+this.uid+',\''+id+'\',\''+value+'\',\''+prop_name+'\');" style="cursor: pointer;">'+findFirstNode(nodeProp, '#cdata-section').nodeValue+'</td></tr>'+"\n";
|
||||
htmlString+='<tr><td onClick="setPropVal('+this.uid+',\''+id+'\',\''+value+'\',\''+prop_name+'\');" style="background-color:"'+bgColor+'";cursor: pointer;">'+findFirstNode(nodeProp, '#cdata-section').nodeValue+'</td></tr>'+"\n";
|
||||
i++;
|
||||
}
|
||||
nodeProp=nodeProp.nextSibling;
|
||||
|
||||
Reference in New Issue
Block a user