diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php index f37f950..dea2b80 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php @@ -1876,6 +1876,7 @@ public function buildOptionsForm(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Change theme'), '#submit' => array(array($this, 'changeThemeForm')), + '#ajax' => array('path' => current_path()), ); $form['analysis'] = array( @@ -1893,6 +1894,7 @@ public function buildOptionsForm(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Rescan template files'), '#submit' => array(array($this, 'rescanThemes')), + '#ajax' => array('path' => current_path()), ); $form['rescan_button']['markup'] = array( '#markup' => '
' . t("Important! When adding, removing, or renaming template files, it is necessary to make Drupal aware of the changes by making it rescan the files on your system. By clicking this button you clear Drupal's theme registry and thereby trigger this rescanning process. The highlighted templates above will then reflect the new state of your system.") . '
', diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php index ba2adde..f54cee7 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php @@ -400,6 +400,7 @@ protected function showBuildGroupButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Grouped filters'), '#submit' => array(array($this, 'buildGroupForm')), + '#ajax' => array('path' => current_path()), ); $form['group_button']['radios']['radios']['#default_value'] = 0; } @@ -409,6 +410,7 @@ protected function showBuildGroupButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Single filter'), '#submit' => array(array($this, 'buildGroupForm')), + '#ajax' => array('path' => current_path()), ); $form['group_button']['radios']['radios']['#default_value'] = 1; } @@ -469,6 +471,7 @@ public function showExposeButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Expose filter'), '#submit' => array(array($this, 'displayExposedForm')), + '#ajax' => array('path' => current_path()), ); $form['expose_button']['checkbox']['checkbox']['#default_value'] = 0; } @@ -481,6 +484,7 @@ public function showExposeButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Hide filter'), '#submit' => array(array($this, 'displayExposedForm')), + '#ajax' => array('path' => current_path()), ); $form['expose_button']['checkbox']['checkbox']['#default_value'] = 1; } @@ -1062,6 +1066,7 @@ protected function buildExposedFiltersGroupForm(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Add another item'), '#submit' => array(array($this, 'addGroupForm')), + '#ajax' => array('path' => current_path()), ); $js = array(); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/sort/SortPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/sort/SortPluginBase.php index d9b6326..b2716b3 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/sort/SortPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/sort/SortPluginBase.php @@ -118,6 +118,7 @@ public function showExposeButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Expose sort'), '#submit' => array(array($this, 'displayExposedForm')), + '#ajax' => array('path' => current_path()), ); $form['expose_button']['checkbox']['checkbox']['#default_value'] = 0; } @@ -130,6 +131,7 @@ public function showExposeButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Hide sort'), '#submit' => array(array($this, 'displayExposedForm')), + '#ajax' => array('path' => current_path()), ); $form['expose_button']['checkbox']['checkbox']['#default_value'] = 1; }