summaryrefslogtreecommitdiff
path: root/public/js/modules/event-edit.js
diff options
context:
space:
mode:
authorRaphael <mail@raphaelkabo.com>2023-10-09 20:10:29 +0100
committerGitHub <noreply@github.com>2023-10-09 20:10:29 +0100
commitf716861b6430d4561b2cf70cd9f0d99accf49392 (patch)
tree6f96696b583e4fab1a2d1f54a2f99bcee3267c04 /public/js/modules/event-edit.js
parentcc6fcb4c405d8cffacbf9b1082abf61e918482fa (diff)
parent7fe1f42d56edb98875399b1da5e9b7e972209a0d (diff)
Merge pull request #115 from lowercasename/rk/typescript
Typescript migration project (event group linker)
Diffstat (limited to 'public/js/modules/event-edit.js')
-rw-r--r--public/js/modules/event-edit.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/js/modules/event-edit.js b/public/js/modules/event-edit.js
index 65d9889..0a295cb 100644
--- a/public/js/modules/event-edit.js
+++ b/public/js/modules/event-edit.js
@@ -47,6 +47,13 @@ function editEventForm() {
this.data.timezone = event.target.value;
});
this.data.timezone = this.select2.val();
+
+ // Set checkboxes
+ this.data.eventGroupCheckbox = window.eventData.eventGroupID !== "";
+ this.data.interactionCheckbox = window.eventData.usersCanComment;
+ this.data.joinCheckbox = window.eventData.usersCanAttend;
+ this.data.maxAttendeesCheckbox =
+ window.eventData.maxAttendees !== null;
},
async submitForm() {
this.submitting = true;