mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix Datepickers in Call for Content
Datapickers in Call for Events/Booths/Tracks were broken which made impossible to create them (as the date is required). Those are not the only Datepickers broken and a similar solution should work for the rest as well. Fixes https://github.com/openSUSE/osem/issues/2349
This commit is contained in:
parent
e03f9dc5fe
commit
1a3e3f433d
2 changed files with 16 additions and 19 deletions
|
|
@ -66,22 +66,19 @@ $(function () {
|
|||
format: "YYYY-MM-DD",
|
||||
});
|
||||
|
||||
// end_date_conference >= registration-period-Start_date >= Current_date
|
||||
// registration-period-Start_date <= registration-period-End_date <= End_date (of conference)
|
||||
$("#registration-period-start-datepicker").datetimepicker({
|
||||
pickTime: false,
|
||||
useCurrent: false,
|
||||
format: "YYYY-MM-DD",
|
||||
// today <= start_registration <= end_registration <= end_conference
|
||||
var end_conference = $('form').data('end-conference');
|
||||
|
||||
$('#registration-period-start-datapicker').datetimepicker({
|
||||
format: 'YYYY-MM-DD',
|
||||
minDate : today,
|
||||
maxDate : $("#registration-period-start-datepicker").attr('end_date'),
|
||||
maxDate : end_conference
|
||||
});
|
||||
|
||||
$("#registration-period-end-datepicker").datetimepicker({
|
||||
pickTime: false,
|
||||
useCurrent: false,
|
||||
format: "YYYY-MM-DD",
|
||||
minDate: today,
|
||||
maxDate : $("#registration-period-start-datepicker").attr('end_date'),
|
||||
$('#registration-period-end-datapicker').datetimepicker({
|
||||
format: 'YYYY-MM-DD',
|
||||
minDate : today,
|
||||
maxDate : end_conference
|
||||
});
|
||||
|
||||
$("#conference-start-datepicker").on("dp.change",function (e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue