Permalink
Browse files

Datepicker: Define en and en-US locales based on defaults

Fixes #6682
Closes gh-1269
  • Loading branch information...
scottgonzalez authored and jzaefferer committed Jun 12, 2014
1 parent 226cc3e commit 450d75f912f4161c475f18f9eeb7efd307c02eae
Showing with 2 additions and 0 deletions.
  1. +2 −0 ui/datepicker.js
View
@@ -139,6 +139,8 @@ function Datepicker() {
disabled: false // The initial disabled state
};
$.extend(this._defaults, this.regional[""]);
this.regional.en = $.extend( true, {}, this.regional[ "" ]);
this.regional[ "en-US" ] = $.extend( true, {}, this.regional.en );
this.dpDiv = datepicker_bindHover($("<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"));
}

0 comments on commit 450d75f

Please sign in to comment.