remember open status
This commit is contained in:
parent
69a1b7efea
commit
8a5f21bb0b
|
@ -299,6 +299,21 @@ class CCPMethodList2 extends HTMLElement{
|
|||
e.querySelector("span[name=count_executables]").textContent = executables
|
||||
}
|
||||
},
|
||||
{
|
||||
target : "details",
|
||||
apply : (e,d)=>{
|
||||
e.alt = e.title = d
|
||||
if(sessionStorage.getItem(d) === "open") e.open = "open";
|
||||
else e.removeAttribute("open");
|
||||
},
|
||||
on_toggle : ev=>{
|
||||
if(ev.target.open){
|
||||
sessionStorage.setItem(ev.currentTarget.alt, 'open')
|
||||
}else{
|
||||
sessionStorage.removeItem(ev.currentTarget.alt)
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
target : "details ul[name=process_list]",
|
||||
in : (e,d)=>d,
|
||||
|
|
Loading…
Reference in New Issue