From 8a8fc5b593cc7aae800462c00bb4c183f5af93c1 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Thu, 24 Mar 2016 10:59:42 +0900 Subject: [PATCH] Issue #2692359 by alexpott, nod_: Use core/drupal.dialog.ajax when using data-dialog-type --- core/modules/block/block.libraries.yml | 2 +- core/modules/config/src/Form/ConfigSync.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/block/block.libraries.yml b/core/modules/block/block.libraries.yml index a8c704421758..967a6827a16b 100644 --- a/core/modules/block/block.libraries.yml +++ b/core/modules/block/block.libraries.yml @@ -16,4 +16,4 @@ drupal.block.admin: dependencies: - core/jquery - core/drupal - - core/drupal.ajax + - core/drupal.dialog.ajax diff --git a/core/modules/config/src/Form/ConfigSync.php b/core/modules/config/src/Form/ConfigSync.php index 30e9d978a3ae..c17dcad27db5 100644 --- a/core/modules/config/src/Form/ConfigSync.php +++ b/core/modules/config/src/Form/ConfigSync.php @@ -232,7 +232,7 @@ class ConfigSync extends FormBase { $form_state->set('storage_comparer', $storage_comparer); // Add the AJAX library to the form for dialog support. - $form['#attached']['library'][] = 'core/drupal.ajax'; + $form['#attached']['library'][] = 'core/drupal.dialog.ajax'; foreach ($storage_comparer->getAllCollectionNames() as $collection) { if ($collection != StorageInterface::DEFAULT_COLLECTION) {