mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker demo: Fixed date range restriction when clearing dates. Fixes #5473 - Datepicker: Date range demo bug when clearing date.
This commit is contained in:
parent
4d5197b7b4
commit
a50516f77e
@ -15,7 +15,7 @@
|
|||||||
defaultDate: "+1w",
|
defaultDate: "+1w",
|
||||||
changeMonth: true,
|
changeMonth: true,
|
||||||
numberOfMonths: 3,
|
numberOfMonths: 3,
|
||||||
onSelect: function( selectedDate ) {
|
onClose: function( selectedDate ) {
|
||||||
$( "#to" ).datepicker( "option", "minDate", selectedDate );
|
$( "#to" ).datepicker( "option", "minDate", selectedDate );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -23,7 +23,7 @@
|
|||||||
defaultDate: "+1w",
|
defaultDate: "+1w",
|
||||||
changeMonth: true,
|
changeMonth: true,
|
||||||
numberOfMonths: 3,
|
numberOfMonths: 3,
|
||||||
onSelect: function( selectedDate ) {
|
onClose: function( selectedDate ) {
|
||||||
$( "#from" ).datepicker( "option", "maxDate", selectedDate );
|
$( "#from" ).datepicker( "option", "maxDate", selectedDate );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user