diff options
Diffstat (limited to 'ui/i18n/jquery.ui.datepicker-id.js')
-rw-r--r-- | ui/i18n/jquery.ui.datepicker-id.js | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/ui/i18n/jquery.ui.datepicker-id.js b/ui/i18n/jquery.ui.datepicker-id.js index 6327fa60c..d0b2e2b9d 100644 --- a/ui/i18n/jquery.ui.datepicker-id.js +++ b/ui/i18n/jquery.ui.datepicker-id.js @@ -1,7 +1,17 @@ /* Indonesian initialisation for the jQuery UI date picker plugin. */ /* Written by Deden Fathurahman (dedenf@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['id'] = { +(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['id'] = { closeText: 'Tutup', prevText: '<mundur', nextText: 'maju>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['id']); -}); + datepicker.setDefaults(datepicker.regional['id']); + + return datepicker.regional['id']; + +})); |