From 46dad5506573909ea9feb580b4a5dc67a02604f4 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Thu, 3 Jun 2021 23:46:08 +0200 Subject: [PATCH] Fixed shift time shortcuts not updating date select --- resources/assets/js/forms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/forms.js b/resources/assets/js/forms.js index 2275b0d1..8d1758cc 100644 --- a/resources/assets/js/forms.js +++ b/resources/assets/js/forms.js @@ -46,10 +46,10 @@ global.formatTime = (date) => { global.setInput = (from, to) => { var fromDay = $('#start_day'), fromTime = $('#start_time'), toDay = $('#end_day'), toTime = $('#end_time'); - fromDay.val(formatDay(from)); + fromDay.val(formatDay(from)).trigger('change'); fromTime.val(formatTime(from)); - toDay.val(formatDay(to)); + toDay.val(formatDay(to)).trigger('change'); toTime.val(formatTime(to)); };