aboutsummaryrefslogtreecommitdiffstats
path: root/demos/datepicker/date-range.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-11 14:53:45 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-11 14:53:45 -0400
commita50516f77e82206f2d1f4188c9f5a242442ace09 (patch)
tree87a49bbd4939878000d2700be4a3e801ff43e3cc /demos/datepicker/date-range.html
parent4d5197b7b446be3a4ff680302c80e98b6b809756 (diff)
downloadjquery-ui-a50516f77e82206f2d1f4188c9f5a242442ace09.tar.gz
jquery-ui-a50516f77e82206f2d1f4188c9f5a242442ace09.zip
Datepicker demo: Fixed date range restriction when clearing dates. Fixes #5473 - Datepicker: Date range demo bug when clearing date.
Diffstat (limited to 'demos/datepicker/date-range.html')
-rw-r--r--demos/datepicker/date-range.html4
1 files changed, 2 insertions, 2 deletions
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 );
}
});