]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker demo: Fixed date range restriction when clearing dates. Fixes #5473 -...
authorScott González <scott.gonzalez@gmail.com>
Thu, 11 Oct 2012 18:53:45 +0000 (14:53 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 11 Oct 2012 18:53:45 +0000 (14:53 -0400)
demos/datepicker/date-range.html

index 284b6b3beea7046f2336d5872ad99e5138d7a9a5..7fd8f321c9dc78fac18dbae2034767d9c107682a 100644 (file)
@@ -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 );
                        }
                });