Datepicker demo: Fixed date range restriction when clearing dates. Fixes #5473 - Datepicker: Date range demo bug when clearing date.

This commit is contained in:
Scott González 2012-10-11 14:53:45 -04:00
parent 4d5197b7b4
commit a50516f77e

View File

@ -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 );
} }
}); });