]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Define en and en-US locales based on defaults
authorScott González <scott.gonzalez@gmail.com>
Thu, 12 Jun 2014 17:37:06 +0000 (13:37 -0400)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 16 Jun 2014 14:42:43 +0000 (16:42 +0200)
Fixes #6682
Closes gh-1269

ui/datepicker.js

index 735866c39b72b9b6ad2c2cf4031fc8e5ea58bd60..10b7d7eb5f2d38206cc8d911602ba18b40060ed6 100644 (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>"));
 }