Fix event add modal handler registration
This commit is contained in:
parent
9207ff7ec8
commit
0f46fd8e25
|
@ -85,7 +85,10 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("add-event-modal").addEventListener("show.bs.modal", e => {
|
const addEventModal = document.getElementById("add-event-modal")
|
||||||
|
if (addEventModal !== null) {
|
||||||
|
addEventModal.addEventListener("show.bs.modal", e => {
|
||||||
document.getElementById("event").value = e.relatedTarget.dataset.eventType
|
document.getElementById("event").value = e.relatedTarget.dataset.eventType
|
||||||
})
|
})
|
||||||
|
}
|
||||||
})()
|
})()
|
||||||
|
|
Loading…
Reference in a new issue