aboutsummaryrefslogtreecommitdiffstats
path: root/ui/i18n/jquery.ui.datepicker-sr.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/i18n/jquery.ui.datepicker-sr.js')
-rw-r--r--ui/i18n/jquery.ui.datepicker-sr.js21
1 files changed, 17 insertions, 4 deletions
diff --git a/ui/i18n/jquery.ui.datepicker-sr.js b/ui/i18n/jquery.ui.datepicker-sr.js
index 1349a26cf..9576c45ef 100644
--- a/ui/i18n/jquery.ui.datepicker-sr.js
+++ b/ui/i18n/jquery.ui.datepicker-sr.js
@@ -1,7 +1,17 @@
/* Serbian i18n for the jQuery UI date picker plugin. */
/* Written by Dejan Dimić. */
-jQuery(function($){
- $.datepicker.regional['sr'] = {
+(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['sr'] = {
closeText: 'Затвори',
prevText: '<',
nextText: '>',
@@ -19,5 +29,8 @@ jQuery(function($){
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
- $.datepicker.setDefaults($.datepicker.regional['sr']);
-});
+ datepicker.setDefaults(datepicker.regional['sr']);
+
+ return datepicker.regional['sr'];
+
+}));