diff --git a/modules/locale/locale.datepicker.js b/modules/locale/locale.datepicker.js index f819282..f072cf3 100644 --- a/modules/locale/locale.datepicker.js +++ b/modules/locale/locale.datepicker.js @@ -5,6 +5,9 @@ */ Drupal.behaviors.localeDatepicker = { attach: function(context, settings) { + if (!Drupal.settings.jquery || !Drupal.settings.jquery.ui || !Drupal.settings.jquery.ui.datepicker) { + return; + } // This code accesses Drupal.settings and localized strings via Drupal.t(). // So this code should run after these are initialized. By placing it in an // attach behavior this is assured.