Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Datepicker demo: Fixed date range restriction when clearing dates. Fi…
…xes #5473 - Datepicker: Date range demo bug when clearing date.
  • Loading branch information
scottgonzalez committed Oct 11, 2012
1 parent 4d5197b commit a50516f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/datepicker/date-range.html
Expand Up @@ -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 );
}
});
Expand Down

0 comments on commit a50516f

Please sign in to comment.