From 68f5ce96ee19c77d46ddcdd18eefad6257cd47fa Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Tue, 16 Jul 2024 13:26:47 +0100 Subject: feat: automatically set end time after start time blurred --- public/js/modules/new.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'public/js/modules/new.js') diff --git a/public/js/modules/new.js b/public/js/modules/new.js index 7915b59..70df641 100644 --- a/public/js/modules/new.js +++ b/public/js/modules/new.js @@ -68,6 +68,11 @@ function newEventForm() { this.data.maxAttendeesCheckbox = false; this.data.publicCheckbox = false; }, + updateEventEnd() { + if (this.data.eventEnd === "" || this.data.eventEnd < this.data.eventStart) { + this.data.eventEnd = this.data.eventStart; + } + }, async submitForm() { this.submitting = true; this.errors = []; -- cgit v1.2.3