Cosmetics
Some checks failed
/ Run tests (push) Successful in 1m52s
/ Run system tests (push) Failing after 2m3s
/ Build, push and deploy image (push) Successful in 1m45s

This commit is contained in:
david 2024-11-11 05:00:51 +01:00
parent ee5dbcf33e
commit e569bcb246
21 changed files with 54 additions and 65 deletions

View file

@ -6,17 +6,20 @@ export default class extends Controller {
}
openAll(e) {
console.log(e)
console.log("open all")
e.preventDefault();
this.element.querySelectorAll("details").forEach(el => {
const id = this.element.dataset["targetId"]
const el = document.getElementById(id)
el.querySelectorAll("details").forEach(el => {
el.setAttribute("open", "")
})
}
closeAll(e) {
console.log(e)
e.preventDefault();
this.element.querySelectorAll("details").forEach(el => {
const id = this.element.dataset["targetId"]
const el = document.getElementById(id)
el.querySelectorAll("details").forEach(el => {
el.removeAttribute("open")
})
}