diff options
Diffstat (limited to 'ui/i18n/jquery.ui.datepicker-mk.js')
-rw-r--r-- | ui/i18n/jquery.ui.datepicker-mk.js | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/ui/i18n/jquery.ui.datepicker-mk.js b/ui/i18n/jquery.ui.datepicker-mk.js index 028532551..91c94dd5c 100644 --- a/ui/i18n/jquery.ui.datepicker-mk.js +++ b/ui/i18n/jquery.ui.datepicker-mk.js @@ -1,7 +1,17 @@ /* Macedonian i18n for the jQuery UI date picker plugin. */ /* Written by Stojce Slavkovski. */ -jQuery(function($){ - $.datepicker.regional['mk'] = { +(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['mk'] = { closeText: 'Затвори', prevText: '<', nextText: '>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['mk']); -}); + datepicker.setDefaults(datepicker.regional['mk']); + + return datepicker.regional['mk']; + +})); |