Fix confusing connection between date and time pickers

This commit is contained in:
Raphael Michel
2017-10-10 18:10:50 +02:00
parent a3e0e14cef
commit 2d456a6dc4

View File

@@ -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);
}
});
}
});