aboutsummaryrefslogtreecommitdiff
path: root/static/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/script.js')
-rw-r--r--static/script.js8
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);