Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…xes #5473 - Datepicker: Date range demo bug when clearing date.
  • Loading branch information...
commit a50516f77e82206f2d1f4188c9f5a242442ace09 1 parent 4d5197b
Scott González authored October 11, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  demos/datepicker/date-range.html
4  demos/datepicker/date-range.html
@@ -15,7 +15,7 @@
15 15
 			defaultDate: "+1w",
16 16
 			changeMonth: true,
17 17
 			numberOfMonths: 3,
18  
-			onSelect: function( selectedDate ) {
  18
+			onClose: function( selectedDate ) {
19 19
 				$( "#to" ).datepicker( "option", "minDate", selectedDate );
20 20
 			}
21 21
 		});
@@ -23,7 +23,7 @@
23 23
 			defaultDate: "+1w",
24 24
 			changeMonth: true,
25 25
 			numberOfMonths: 3,
26  
-			onSelect: function( selectedDate ) {
  26
+			onClose: function( selectedDate ) {
27 27
 				$( "#from" ).datepicker( "option", "maxDate", selectedDate );
28 28
 			}
29 29
 		});

0 notes on commit a50516f

Please sign in to comment.
Something went wrong with that request. Please try again.