diff --git a/core/modules/locale/locale.datepicker.js b/core/modules/locale/locale.datepicker.js index 197fc42..9249c32 100644 --- a/core/modules/locale/locale.datepicker.js +++ b/core/modules/locale/locale.datepicker.js @@ -14,6 +14,9 @@ */ Drupal.behaviors.localeDatepicker = { attach: function (context, settings) { + if (!drupalSettings.jquery || !drupalSettings.jquery.ui || !drupalSettings.jquery.ui.datepicker) { + return; + } // This code accesses drupalSettings 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.