Мелкое
This commit is contained in:
@ -1059,7 +1059,7 @@ class SRec
|
||||
th.style.textDecoration='underline';
|
||||
th.style.cursor='pointer';
|
||||
th.onclick=function(thiz,cName){ return function(){ findNodeOnPath(thiz.nodeMetadata,"type/objects-list").setAttribute('order',cName); thiz.appendFilter(); thiz.sendFilter(-1,0);}; }(this,columnNode.getAttribute("n"));
|
||||
th.onmouseover=function(){ this.style.backgroundColor='#C2D7FC'; };
|
||||
th.onmouseover=function(){ this.style.backgroundColor="var(--btn-color2)"; };
|
||||
th.onmouseout=function(thiz,cName){ return function(){ if(findNodeOnPath(thiz.nodeMetadata,"type/objects-list").getAttribute('order') == cName) this.style.backgroundColor='#afafaf'; else this.style.backgroundColor='#dadada'; }; }(this,columnNode.getAttribute("n"));
|
||||
}
|
||||
tr.appendChild(th);
|
||||
@ -1167,8 +1167,8 @@ class SRec
|
||||
let id=nodeRecord.getAttribute("id");
|
||||
//add rows to an existing record table
|
||||
let tr = document.createElement('tr');
|
||||
tr.onmouseover=function(){this.setAttribute("bgColor","#C2D7FC");};
|
||||
tr.onmouseout=function(val1,val2){return function(){val1.setAttribute("bgColor",val2);}}(tr,bgColor);
|
||||
tr.onmouseover=function(){ this.style.backgroundColor="var(--btn-color2)"; };
|
||||
tr.onmouseout=function(val1,val2){return function(){val1.style.backgroundColor=val2;}}(tr,bgColor);
|
||||
tr.setAttribute("id",id+'_'+this.uid);
|
||||
tr.setAttribute("bgColor",bgColor);
|
||||
//sequential record number
|
||||
@ -1211,13 +1211,12 @@ class SRec
|
||||
if (this.masCT[colN]!=null)
|
||||
{
|
||||
//Opening a new window in the filter is passed to the current values of the row
|
||||
td.setAttribute("bgColor","#AAFFFF");
|
||||
td.style.cssText="cursor: pointer;";
|
||||
td.style.cssText="cursor: pointer; background-color: var(--btn-color); font-weight: bold;";
|
||||
td.onmouseover=function(){
|
||||
this.setAttribute("bgColor","#FFAAAA");
|
||||
this.style.backgroundColor="var(--btn-color2)";
|
||||
};
|
||||
td.onmouseout=function(){
|
||||
this.setAttribute("bgColor","#AAFFFF");
|
||||
this.style.backgroundColor="var(--btn-color)";
|
||||
};
|
||||
//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
|
||||
|
||||
Reference in New Issue
Block a user