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 83e226f..db8c215 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 @@ -1871,6 +1871,7 @@ public function buildOptionsForm(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Change theme'), '#submit' => array(array($this, 'changeThemeForm')), + '#attributes' => array('class' => array('use-ajax-submit')), ); $form['analysis'] = array( @@ -1888,6 +1889,7 @@ public function buildOptionsForm(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Rescan template files'), '#submit' => array(array($this, 'rescanThemes')), + '#attributes' => array('class' => array('use-ajax-submit')), ); $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 0622d86..7d5be40 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 @@ -399,6 +399,7 @@ protected function showBuildGroupButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Grouped filters'), '#submit' => array(array($this, 'buildGroupForm')), + '#attributes' => array('class' => array('use-ajax-submit')), ); $form['group_button']['radios']['radios']['#default_value'] = 0; } @@ -408,6 +409,7 @@ protected function showBuildGroupButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Single filter'), '#submit' => array(array($this, 'buildGroupForm')), + '#attributes' => array('class' => array('use-ajax-submit')), ); $form['group_button']['radios']['radios']['#default_value'] = 1; } @@ -468,6 +470,7 @@ public function showExposeButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Expose filter'), '#submit' => array(array($this, 'displayExposedForm')), + '#attributes' => array('class' => array('use-ajax-submit')), ); $form['expose_button']['checkbox']['checkbox']['#default_value'] = 0; } @@ -480,6 +483,7 @@ public function showExposeButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Hide filter'), '#submit' => array(array($this, 'displayExposedForm')), + '#attributes' => array('class' => array('use-ajax-submit')), ); $form['expose_button']['checkbox']['checkbox']['#default_value'] = 1; } @@ -1061,6 +1065,7 @@ protected function buildExposedFiltersGroupForm(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Add another item'), '#submit' => array(array($this, 'addGroupForm')), + '#attributes' => array('class' => array('use-ajax-submit')), ); $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 3273b2b..74c9710 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 @@ -117,6 +117,7 @@ public function showExposeButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Expose sort'), '#submit' => array(array($this, 'displayExposedForm')), + '#attributes' => array('class' => array('use-ajax-submit')), ); $form['expose_button']['checkbox']['checkbox']['#default_value'] = 0; } @@ -129,6 +130,7 @@ public function showExposeButton(&$form, &$form_state) { '#type' => 'submit', '#value' => t('Hide sort'), '#submit' => array(array($this, 'displayExposedForm')), + '#attributes' => array('class' => array('use-ajax-submit')), ); $form['expose_button']['checkbox']['checkbox']['#default_value'] = 1; } diff --git a/core/modules/views_ui/js/views-admin.js b/core/modules/views_ui/js/views-admin.js index bb54d50..8666317 100644 --- a/core/modules/views_ui/js/views-admin.js +++ b/core/modules/views_ui/js/views-admin.js @@ -859,7 +859,7 @@ Drupal.viewsUi.Checkboxifier = function (button) { */ Drupal.viewsUi.Checkboxifier.prototype.clickHandler = function (e) { this.$button - .trigger('mousedown') + .trigger('click') .trigger('submit'); };