+ Подробные коменты в не [[]]
This commit is contained in:
@ -86,6 +86,7 @@ class tcTab
|
||||
this.par=null;
|
||||
this.sel=false;
|
||||
this.con=null; //Элемент с содержимым
|
||||
this.display = 'block'; //Для сохранения старого значения
|
||||
this.href='';
|
||||
|
||||
//Сам таб на который нажимаем (ушко)
|
||||
@ -116,6 +117,9 @@ class tcTab
|
||||
val=document.getElementById(val);
|
||||
if(val===null || typeof(val)=='undefined') return;
|
||||
this.con=val;
|
||||
|
||||
this.display = this.con.style.display;
|
||||
|
||||
if(!this.sel) this.con.style.display='none';
|
||||
this.par.ctt.appendChild(this.con);
|
||||
return val;
|
||||
@ -131,8 +135,7 @@ class tcTab
|
||||
}
|
||||
this.div.style.background = 'var(--row-color-2)';
|
||||
this.div.style.borderBottom = '1px solid var(--back-color)'
|
||||
//this.con.style.display='inline'
|
||||
this.con.style.display='block';
|
||||
this.con.style.display = this.display; //this.con.style.display='block'; //this.con.style.display='inline'
|
||||
this.sel=true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user