aboutsummaryrefslogtreecommitdiffstats
path: root/ui/i18n/jquery.ui.datepicker-th.js
diff options
context:
space:
mode:
authorRafael Xavier de Souza <rxaviers@gmail.com>2013-07-17 12:10:30 -0300
committerRafael Xavier de Souza <rxaviers@gmail.com>2014-01-24 18:22:31 -0200
commit1216e2aaf5e9bae52abe1ef9dfb9ab34c271c56d (patch)
treea5abeec136b8bf9f53dce4c40bcbd1e8e5172bc0 /ui/i18n/jquery.ui.datepicker-th.js
parent96e027e4b14345722cc39589f59ce2ce5e94b991 (diff)
downloadjquery-ui-1216e2aaf5e9bae52abe1ef9dfb9ab34c271c56d.tar.gz
jquery-ui-1216e2aaf5e9bae52abe1ef9dfb9ab34c271c56d.zip
All: Wrap I18n files with UMD return exports
Ref #9464 Ref gh-1029
Diffstat (limited to 'ui/i18n/jquery.ui.datepicker-th.js')
-rw-r--r--ui/i18n/jquery.ui.datepicker-th.js21
1 files changed, 17 insertions, 4 deletions
diff --git a/ui/i18n/jquery.ui.datepicker-th.js b/ui/i18n/jquery.ui.datepicker-th.js
index aecfd27cc..92bb78579 100644
--- a/ui/i18n/jquery.ui.datepicker-th.js
+++ b/ui/i18n/jquery.ui.datepicker-th.js
@@ -1,7 +1,17 @@
/* Thai initialisation for the jQuery UI date picker plugin. */
/* Written by pipo (pipo@sixhead.com). */
-jQuery(function($){
- $.datepicker.regional['th'] = {
+(function( factory ) {
+ if ( typeof define === "function" && define.amd ) {
+
+ // AMD. Register as an anonymous module.
+ define([ "../jquery.ui.datepicker" ], factory );
+ } else {
+
+ // Browser globals
+ factory( jQuery.datepicker );
+ }
+}(function( datepicker ) {
+ datepicker.regional['th'] = {
closeText: 'ปิด',
prevText: '&#xAB;&#xA0;ย้อน',
nextText: 'ถัดไป&#xA0;&#xBB;',
@@ -19,5 +29,8 @@ jQuery(function($){
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
- $.datepicker.setDefaults($.datepicker.regional['th']);
-});
+ datepicker.setDefaults(datepicker.regional['th']);
+
+ return datepicker.regional['th'];
+
+}));