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

Fixes #6682
Closes gh-1269
This commit is contained in:
Scott González 2014-06-12 13:37:06 -04:00 committed by Jörn Zaefferer
parent 226cc3e9e5
commit 450d75f912

View File

@ -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>"));
}