Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
Fix for set date (day must go last)
Browse files Browse the repository at this point in the history
  • Loading branch information
ujifgc authored and timcharper committed Mar 14, 2010
1 parent c60d8b9 commit 5ffca95
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -360,9 +360,9 @@ CalendarDateSelect.prototype = {
if ((this.target_element.disabled || this.target_element.readOnly) && this.options.get("popup") != "force") return false;
if (parts.get("day")) {
var t_selected_date = this.selected_date, vdc = this.options.get("valid_date_check");
for (var x = 0; x<=3; x++) t_selected_date.setDate(parts.get("day"));
t_selected_date.setYear(parts.get("year"));
t_selected_date.setMonth(parts.get("month"));
t_selected_date.setDate(parts.get("day"));

if (vdc && ! vdc(t_selected_date.stripTime())) { return false; }
this.selected_date = t_selected_date;
Expand Down

0 comments on commit 5ffca95

Please sign in to comment.