Мелкое
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
/*Переменные для настройки цветов*/
|
||||
:root{
|
||||
/*--header-color: #505050;*/
|
||||
--header-color: #fdfdfd;
|
||||
/*--back-color: #3a3a3a;*/
|
||||
--back-color: #ffffff;
|
||||
--header-color: #505050;
|
||||
/*--header-color: #fdfdfd;*/
|
||||
--back-color: #3a3a3a;
|
||||
/*--back-color: #ffffff;*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -654,7 +654,7 @@ class EdtRec
|
||||
|
||||
//Button to send the file to the server
|
||||
let btnSel = document.createElement('input');
|
||||
button.className='button-secondary';
|
||||
btnSel.className='button-secondary';
|
||||
btnSel.setAttribute("type","button");
|
||||
btnSel.setAttribute("value","...");
|
||||
btnSel.setAttribute("title",_('Upload'));
|
||||
@ -663,7 +663,7 @@ class EdtRec
|
||||
newCell2.appendChild(btnSel);
|
||||
|
||||
let button2 = document.createElement('input');
|
||||
button.className='button-secondary';
|
||||
button2.className='button-secondary';
|
||||
button2.setAttribute("type","button");
|
||||
button2.setAttribute("value","X");
|
||||
button2.setAttribute("title",_('Delete'));
|
||||
@ -672,7 +672,7 @@ class EdtRec
|
||||
newCell3.appendChild(button2);
|
||||
|
||||
//Download button
|
||||
newCell4.innerHTML='<form action="'+ScriptDName+'" method="get" style="display:inline;" target="_blank"><input type="hidden" name="fn" value="10"/><input type="hidden" name="n" value="'+nodeProp.getAttribute('cd')+'"/><input type="hidden" name="t" value="'+nodeType.getAttribute('n')+'"/><input type="hidden" name="f" value="'+nodeProp.getAttribute('n')+'"/><input type="hidden" name="i" value="'+record_id+'"/><input style="height:22px;width:22px;" type="submit" title="'+_('Download')+'" value="D" /></form>'
|
||||
newCell4.innerHTML='<form action="'+ScriptDName+'" method="get" style="display:inline;" target="_blank"><input type="hidden" name="fn" value="10"/><input type="hidden" name="n" value="'+nodeProp.getAttribute('cd')+'"/><input type="hidden" name="t" value="'+nodeType.getAttribute('n')+'"/><input type="hidden" name="f" value="'+nodeProp.getAttribute('n')+'"/><input type="hidden" name="i" value="'+record_id+'"/><input class="button-secondary" style="height:22px;width:22px;" type="submit" title="'+_('Download')+'" value="D" /></form>'
|
||||
|
||||
td2.appendChild( tbl_b );
|
||||
|
||||
|
||||
@ -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