aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2014-06-12 13:37:06 -0400
committerJörn Zaefferer <joern.zaefferer@gmail.com>2014-06-16 16:42:43 +0200
commit450d75f912f4161c475f18f9eeb7efd307c02eae (patch)
treeb1d9b961ee1ce03c08f81fb0d1ef34e607ac498e
parent226cc3e9e57c7591ff6a2ee02ffed52ac97786a9 (diff)
downloadjquery-ui-450d75f912f4161c475f18f9eeb7efd307c02eae.tar.gz
jquery-ui-450d75f912f4161c475f18f9eeb7efd307c02eae.zip
Datepicker: Define en and en-US locales based on defaults
Fixes #6682 Closes gh-1269
-rw-r--r--ui/datepicker.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/datepicker.js b/ui/datepicker.js
index 735866c39..10b7d7eb5 100644
--- a/ui/datepicker.js
+++ b/ui/datepicker.js
@@ -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>"));
}