Fix collapsing classes

This commit is contained in:
Daniel J. Summers 2022-05-31 21:50:05 -04:00
parent a050df4378
commit 39fdf42827
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
"hostname": "data02.bitbadger.solutions",
"database": "myWebLog_dev"
},
"Generator": "myWebLog 2.0-alpha22",
"Generator": "myWebLog 2.0-alpha23",
"Logging": {
"LogLevel": {
"MyWebLog.Handlers": "Debug"

View File

@ -102,10 +102,10 @@
const section = document.getElementById(id)
const arrow = document.getElementById(`${id}Arrow`)
if (section.className.indexOf("shown") === -1) {
section.className = section.className.replace(" hidden", " shown")
section.className = `${section.className} shown`
arrow.innerHTML = "▲"
} else {
section.className = section.className.replace(" shown", " hidden")
section.className = section.className.replace(" shown", "")
arrow.innerHTML = "▼"
}
}