aboutsummaryrefslogtreecommitdiffstats
path: root/demos/datepicker/jquery.ui.datepicker-he.js
diff options
context:
space:
mode:
Diffstat (limited to 'demos/datepicker/jquery.ui.datepicker-he.js')
-rw-r--r--demos/datepicker/jquery.ui.datepicker-he.js21
1 files changed, 17 insertions, 4 deletions
diff --git a/demos/datepicker/jquery.ui.datepicker-he.js b/demos/datepicker/jquery.ui.datepicker-he.js
index b9e8deec5..bf58038f5 100644
--- a/demos/datepicker/jquery.ui.datepicker-he.js
+++ b/demos/datepicker/jquery.ui.datepicker-he.js
@@ -1,7 +1,17 @@
/* Hebrew initialisation for the UI Datepicker extension. */
/* Written by Amir Hardon (ahardon at gmail dot com). */
-jQuery(function($){
- $.datepicker.regional['he'] = {
+(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['he'] = {
closeText: 'סגור',
prevText: '<הקודם',
nextText: 'הבא>',
@@ -19,5 +29,8 @@ jQuery(function($){
isRTL: true,
showMonthAfterYear: false,
yearSuffix: ''};
- $.datepicker.setDefaults($.datepicker.regional['he']);
-});
+ datepicker.setDefaults(datepicker.regional['he']);
+
+ return datepicker.regional['he'];
+
+}));