Fix collapsing classes
This commit is contained in:
parent
a050df4378
commit
39fdf42827
|
@ -3,7 +3,7 @@
|
||||||
"hostname": "data02.bitbadger.solutions",
|
"hostname": "data02.bitbadger.solutions",
|
||||||
"database": "myWebLog_dev"
|
"database": "myWebLog_dev"
|
||||||
},
|
},
|
||||||
"Generator": "myWebLog 2.0-alpha22",
|
"Generator": "myWebLog 2.0-alpha23",
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"MyWebLog.Handlers": "Debug"
|
"MyWebLog.Handlers": "Debug"
|
||||||
|
|
|
@ -102,10 +102,10 @@
|
||||||
const section = document.getElementById(id)
|
const section = document.getElementById(id)
|
||||||
const arrow = document.getElementById(`${id}Arrow`)
|
const arrow = document.getElementById(`${id}Arrow`)
|
||||||
if (section.className.indexOf("shown") === -1) {
|
if (section.className.indexOf("shown") === -1) {
|
||||||
section.className = section.className.replace(" hidden", " shown")
|
section.className = `${section.className} shown`
|
||||||
arrow.innerHTML = "▲"
|
arrow.innerHTML = "▲"
|
||||||
} else {
|
} else {
|
||||||
section.className = section.className.replace(" shown", " hidden")
|
section.className = section.className.replace(" shown", "")
|
||||||
arrow.innerHTML = "▼"
|
arrow.innerHTML = "▼"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user