autofill conference end date

- automatically setting the end date to the start date when creating or
  modifying a conference for UX reasons (fix #1844)
This commit is contained in:
Adriano Vieira 2017-12-02 18:24:30 -02:00
parent c0e4d54415
commit bbb09dd237

View file

@ -79,6 +79,9 @@ $(function () {
$("#conference-start-datepicker").on("dp.change",function (e) {
$('#conference-end-datepicker').data("DateTimePicker").setMinDate(e.date);
if (!$('#conference-end-datepicker').val()) {
$('#conference-end-datepicker').data("DateTimePicker").setDate(e.date);
}
});
$("#conference-end-datepicker").on("dp.change",function (e) {
$('#conference-start-datepicker').data("DateTimePicker").setMaxDate(e.date);