Commit d5df67d4 authored by alexpott's avatar alexpott

Issue #1969612 by Xano, Bojhan: Simplify 'Use Ajax'.

parent 0cc03356
...@@ -1395,12 +1395,10 @@ public function buildOptionsForm(&$form, &$form_state) { ...@@ -1395,12 +1395,10 @@ public function buildOptionsForm(&$form, &$form_state) {
break; break;
case 'use_ajax': case 'use_ajax':
$form['#title'] .= t('Use AJAX when available to load this view'); $form['#title'] .= t('Use AJAX when available to load this view');
$form['description'] = array(
'#markup' => '<div class="description form-item">' . 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.') . '</div>',
);
$form['use_ajax'] = array( $form['use_ajax'] = array(
'#type' => 'radios', '#description' => t('When viewing a view, things like paging, table sorting, and exposed filters will not trigger a page refresh.'),
'#options' => array(1 => t('Yes'), 0 => t('No')), '#type' => 'checkbox',
'#title' => t('Use AJAX'),
'#default_value' => $this->getOption('use_ajax') ? 1 : 0, '#default_value' => $this->getOption('use_ajax') ? 1 : 0,
); );
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment