mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
autofill CFP end date
- automatically setting the end date to the start date when creating CFP for UX reasons (fix #1872)
This commit is contained in:
parent
9608e2032a
commit
6d7e1f4865
1 changed files with 3 additions and 0 deletions
|
|
@ -98,6 +98,9 @@ $(function () {
|
|||
|
||||
$("#registration-period-start-datepicker").on("dp.change",function (e) {
|
||||
$('#registration-period-end-datepicker').data("DateTimePicker").setMinDate(e.date);
|
||||
if (!$('#registration-period-end-datepicker').val()) {
|
||||
$('#registration-period-end-datepicker').data("DateTimePicker").setDate(e.date);
|
||||
}
|
||||
});
|
||||
$("#registration-period-end-datepicker").on("dp.change",function (e) {
|
||||
$('#registration-period-start-datepicker').data("DateTimePicker").setMaxDate(e.date);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue