diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index 59fd428..14f214a 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -642,18 +642,9 @@ function locale_library_info_alter(&$libraries, $module) { // this attach behavior will execute early. JS_LIBRARY is the default for // hook_library_info_alter(), thus does not have to be specified explicitly. $libraries['jquery.ui.datepicker']['dependencies'][] = array('locale', 'drupal.locale.datepicker'); - $libraries['jquery.ui.datepicker']['js'][] = array( - 'data' => array( - 'jquery' => array( - 'ui' => array( - 'datepicker' => array( - 'isRTL' => $language_interface->direction == Language::DIRECTION_RTL, - 'firstDay' => \Drupal::config('system.date')->get('first_day'), - ), - ), - ), - ), - 'type' => 'setting', + $libraries['jquery.ui.datepicker']['settings']['jquery']['ui']['datepicker'] = array( + 'isRTL' => $language_interface->direction == Language::DIRECTION_RTL, + 'firstDay' => \Drupal::config('system.date')->get('first_day'), ); } }