From 2f4ffd5d86aa695afaffed9c6780f695d0bfde9d Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Tue, 10 Oct 2023 15:18:12 +0100 Subject: Improve group selector styling to use Select2 --- public/js/modules/new.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'public/js/modules/new.js') diff --git a/public/js/modules/new.js b/public/js/modules/new.js index ca875bc..2d880f8 100644 --- a/public/js/modules/new.js +++ b/public/js/modules/new.js @@ -95,12 +95,13 @@ function newEventForm() { errors: [], submitting: false, init() { - // Set up Select2 + // Set up timezone Select2 this.select2 = $(this.$refs.timezone).select2(); this.select2.on("select2:select", (event) => { this.data.timezone = event.target.value; }); this.data.timezone = this.select2.val(); + // Reset checkboxes this.data.eventGroupCheckbox = false; this.data.interactionCheckbox = false; -- cgit v1.2.3