diff options
Diffstat (limited to 'static')
-rw-r--r-- | static/script.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js index 1a893e56..32e19cc4 100644 --- a/static/script.js +++ b/static/script.js @@ -575,6 +575,14 @@ window.onload = function () { */ el.parentElement.removeAttribute("href"); + /* TODO this doesn't yet apply to newly created events */ + let popup = document.getElementById("popup" + el.id); + let form = popup.getElementsByClassName("edit-form")[0]; + form.onsubmit = function () { + create_event(el); + return false; /* stop default */ + } + /* Bind all vcomponent properties into javascript. */ if (el.closest(".longevents")) { bind_properties(el, true); |