From d5df67d46f4f0b48e7d70adbc2fb73fedbd44687 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Thu, 18 Apr 2013 08:10:47 +0100 Subject: [PATCH] Issue #1969612 by Xano, Bojhan: Simplify 'Use Ajax'. --- .../views/Plugin/views/display/DisplayPluginBase.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 36456217ad..c054e99b9f 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 @@ -1395,12 +1395,10 @@ public function buildOptionsForm(&$form, &$form_state) { break; case 'use_ajax': $form['#title'] .= t('Use AJAX when available to load this view'); - $form['description'] = array( - '#markup' => '
' . t('If set, this view will use an AJAX mechanism for paging, table sorting and exposed filters. This means the entire page will not refresh. It is not recommended that you use this if this view is the main content of the page as it will prevent deep linking to specific pages, but it is very useful for side content.') . '
', - ); $form['use_ajax'] = array( - '#type' => 'radios', - '#options' => array(1 => t('Yes'), 0 => t('No')), + '#description' => t('When viewing a view, things like paging, table sorting, and exposed filters will not trigger a page refresh.'), + '#type' => 'checkbox', + '#title' => t('Use AJAX'), '#default_value' => $this->getOption('use_ajax') ? 1 : 0, ); break; -- GitLab