Skip to content
Permalink
Browse files

datepicker demo: improved to respect dateFormat when setting min/maxD…

…ate; datepicker still needs a lot of work
  • Loading branch information...
jzaefferer committed Mar 15, 2009
1 parent d9b69be commit 2ebe15ee7d30c4658709d78468dccefb73abad41
Showing with 3 additions and 1 deletion.
  1. +3 −1 demos/datepicker/event-search.html
@@ -15,7 +15,9 @@
numberOfMonths: 3,
onSelect: function(selectedDate) {
var option = this.id == "from" ? "minDate" : "maxDate";
dates.not(this).datepicker("option", option, new Date(selectedDate));
var instance = $(this).data("datepicker");
var date = $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings);
dates.not(this).datepicker("option", option, date);
}
});
});

0 comments on commit 2ebe15e

Please sign in to comment.
You can’t perform that action at this time.