diff options
Diffstat (limited to 'demos/datepicker/jquery.ui.datepicker-fr.js')
-rw-r--r-- | demos/datepicker/jquery.ui.datepicker-fr.js | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/demos/datepicker/jquery.ui.datepicker-fr.js b/demos/datepicker/jquery.ui.datepicker-fr.js index 2d06743a6..33fa80d48 100644 --- a/demos/datepicker/jquery.ui.datepicker-fr.js +++ b/demos/datepicker/jquery.ui.datepicker-fr.js @@ -2,8 +2,18 @@ /* Written by Keith Wood (kbwood{at}iinet.com.au), Stéphane Nahmani (sholby@sholby.net), Stéphane Raimbault <stephane.raimbault@gmail.com> */ -jQuery(function($){ - $.datepicker.regional['fr'] = { +(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['fr'] = { closeText: 'Fermer', prevText: 'Précédent', nextText: 'Suivant', @@ -21,5 +31,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fr']); -}); + datepicker.setDefaults(datepicker.regional['fr']); + + return datepicker.regional['fr']; + +})); |