forked from CGM_Public/pretix_original
Fix confusing connection between date and time pickers
This commit is contained in:
@@ -191,8 +191,10 @@ $(function () {
|
||||
if (date === null) {
|
||||
return;
|
||||
}
|
||||
date.set({'hour': 0, 'minute': 0, 'second': 0});
|
||||
$timepicker.data('DateTimePicker').date(date);
|
||||
if ($timepicker.val() === "") {
|
||||
date.set({'hour': 0, 'minute': 0, 'second': 0});
|
||||
$timepicker.data('DateTimePicker').date(date);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user