Fixed shift time shortcuts not updating date select
This commit is contained in:
parent
f0791fe6f1
commit
46dad55065
|
@ -46,10 +46,10 @@ global.formatTime = (date) => {
|
||||||
global.setInput = (from, to) => {
|
global.setInput = (from, to) => {
|
||||||
var fromDay = $('#start_day'), fromTime = $('#start_time'), toDay = $('#end_day'), toTime = $('#end_time');
|
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));
|
fromTime.val(formatTime(from));
|
||||||
|
|
||||||
toDay.val(formatDay(to));
|
toDay.val(formatDay(to)).trigger('change');
|
||||||
toTime.val(formatTime(to));
|
toTime.val(formatTime(to));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue