diff options
Diffstat (limited to 'public/js/modules/new.js')
-rw-r--r-- | public/js/modules/new.js | 5 |
1 files changed, 5 insertions, 0 deletions
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 = []; |