mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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:
parent
c0e4d54415
commit
bbb09dd237
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue