diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityListController.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityListController.php index f4ec95e..4ef6911 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityListController.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityListController.php @@ -37,7 +37,6 @@ public function getOperations(EntityInterface $entity) { 'href' => $uri['path'] . '/enable', 'options' => $uri['options'], 'weight' => -10, - 'ajax' => TRUE, ); } else { @@ -46,7 +45,6 @@ public function getOperations(EntityInterface $entity) { 'href' => $uri['path'] . '/disable', 'options' => $uri['options'], 'weight' => 20, - 'ajax' => TRUE, ); } diff --git a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewListController.php b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewListController.php index 3c25398..09bf0ca 100644 --- a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewListController.php +++ b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewListController.php @@ -86,16 +86,22 @@ public function buildHeader() { */ public function getOperations(EntityInterface $view) { $definition = parent::getOperations($view); - $uri = $view->uri(); - $path = $uri['path']; $definition['clone'] = array( 'title' => t('Clone'), - 'href' => "$path/clone", + 'href' => $uri['path'] . '/clone', + 'options' => $uri['options'], 'weight' => 15, ); + // Restore AJAX functionality to enable/disable operations. + foreach (array('enable', 'disable') as $op) { + if (isset($definition[$op])) { + $definition[$op]['ajax'] = TRUE; + } + } + return $definition; }