summaryrefslogtreecommitdiff
path: root/public/js/modules/new.js
diff options
context:
space:
mode:
authorRaphael <mail@raphaelkabo.com>2024-02-26 15:06:01 +0000
committerGitHub <noreply@github.com>2024-02-26 15:06:01 +0000
commitde688444d167fdb80c6e88b8ba837405ba7651a6 (patch)
tree051fa37a2fe30052254bf79a60bd870667fcc0b7 /public/js/modules/new.js
parentafd9fc4477fff90e5db917f350d99c3d01fba2bd (diff)
parent1275280a9e3a31f6080079d564a8fb9e1847db8b (diff)
Merge pull request #135 from lowercasename/rk/public-events
Events and groups optionally visible on front page
Diffstat (limited to 'public/js/modules/new.js')
-rw-r--r--public/js/modules/new.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/js/modules/new.js b/public/js/modules/new.js
index a018087..f7c3e34 100644
--- a/public/js/modules/new.js
+++ b/public/js/modules/new.js
@@ -87,6 +87,7 @@ function newEventForm() {
creatorEmail: "",
eventGroupID: "",
eventGroupEditToken: "",
+ publicCheckbox: false,
interactionCheckbox: false,
joinCheckbox: false,
maxAttendeesCheckbox: false,
@@ -107,6 +108,7 @@ function newEventForm() {
this.data.interactionCheckbox = false;
this.data.joinCheckbox = false;
this.data.maxAttendeesCheckbox = false;
+ this.data.publicCheckbox = false;
},
async submitForm() {
this.submitting = true;
@@ -160,6 +162,11 @@ function newEventGroupForm() {
eventGroupURL: "",
hostName: "",
creatorEmail: "",
+ publicCheckbox: false,
+ },
+ init() {
+ // Reset checkboxes
+ this.data.publicCheckbox = false;
},
errors: [],
submitting: false,