From a50516f77e82206f2d1f4188c9f5a242442ace09 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 11 Oct 2012 14:53:45 -0400 Subject: Datepicker demo: Fixed date range restriction when clearing dates. Fixes #5473 - Datepicker: Date range demo bug when clearing date. --- demos/datepicker/date-range.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demos/datepicker/date-range.html') diff --git a/demos/datepicker/date-range.html b/demos/datepicker/date-range.html index 284b6b3be..7fd8f321c 100644 --- a/demos/datepicker/date-range.html +++ b/demos/datepicker/date-range.html @@ -15,7 +15,7 @@ defaultDate: "+1w", changeMonth: true, numberOfMonths: 3, - onSelect: function( selectedDate ) { + onClose: function( selectedDate ) { $( "#to" ).datepicker( "option", "minDate", selectedDate ); } }); @@ -23,7 +23,7 @@ defaultDate: "+1w", changeMonth: true, numberOfMonths: 3, - onSelect: function( selectedDate ) { + onClose: function( selectedDate ) { $( "#from" ).datepicker( "option", "maxDate", selectedDate ); } }); -- cgit v1.2.3