Browse files

Datepicker demo: Fixed date range restriction when clearing dates. Fi…

…xes #5473 - Datepicker: Date range demo bug when clearing date.
  • Loading branch information...
1 parent 4d5197b commit a50516f77e82206f2d1f4188c9f5a242442ace09 @scottgonzalez scottgonzalez committed Oct 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 demos/datepicker/date-range.html
View
4 demos/datepicker/date-range.html
@@ -15,15 +15,15 @@
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3,
- onSelect: function( selectedDate ) {
+ onClose: function( selectedDate ) {
$( "#to" ).datepicker( "option", "minDate", selectedDate );
}
});
$( "#to" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3,
- onSelect: function( selectedDate ) {
+ onClose: function( selectedDate ) {
$( "#from" ).datepicker( "option", "maxDate", selectedDate );
}
});

0 comments on commit a50516f

Please sign in to comment.