summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js')
-rw-r--r--public/js/modules/event-edit.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/modules/event-edit.js b/public/js/modules/event-edit.js
index ad3f2c5..afe41d4 100644
--- a/public/js/modules/event-edit.js
+++ b/public/js/modules/event-edit.js
@@ -16,7 +16,6 @@ $(document).ready(function () {
$("#event-image-preview").css("background-size", "cover");
$("#event-image-preview").css("background-position", "center center");
}
- $("#timezone").val(window.eventData.timezone).trigger("change");
});
function editEventForm() {
@@ -46,7 +45,8 @@ function editEventForm() {
this.select2.on("select2:select", (event) => {
this.data.timezone = event.target.value;
});
- this.data.timezone = this.select2.val();
+ this.select2.val(this.data.timezone).trigger("change");
+ console.log(JSON.stringify(this.data, null, 2));
// Set checkboxes
this.data.eventGroupCheckbox = !!window.eventData.eventGroupID;