hide away temporary ugly entries

This commit is contained in:
dcore94 2024-11-26 18:41:03 +01:00
parent cbda89bded
commit 14c211be6a
1 changed files with 8 additions and 3 deletions

View File

@ -769,9 +769,14 @@ class CCPExecutionHistory extends HTMLElement {
{
target : "details[name=level1]",
apply : (e,d)=>{
e.alt = e.title = d
if(sessionStorage.getItem(d) === "open") e.open = "open";
else e.removeAttribute("open");
if(!!d){
e.alt = e.title = d
if(sessionStorage.getItem(d) === "open") e.open = "open";
else e.removeAttribute("open");
}else{
//hide away entries that may occur as empty because of timing issues on the server
e.style.display = "none"
}
},
on_toggle : ev=>{
if(ev.target.open){