diff --git a/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php b/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php index cb71597e1752624588ad60c6930085605f873c57..4e7254a7b6145fb27077ec869e8b347ec9da1738 100644 --- a/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php +++ b/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php @@ -54,8 +54,6 @@ protected function defineOptions() { $options['exposed_sorts_label'] = array('default' => 'Sort by', 'translatable' => TRUE); $options['sort_asc_label'] = array('default' => 'Asc', 'translatable' => TRUE); $options['sort_desc_label'] = array('default' => 'Desc', 'translatable' => TRUE); - $options['autosubmit'] = array('default' => FALSE, 'bool' => TRUE); - $options['autosubmit_hide'] = array('default' => TRUE, 'bool' => TRUE); return $options; } @@ -112,25 +110,6 @@ public function buildOptionsForm(&$form, &$form_state) { '#default_value' => $this->options['sort_desc_label'], '#required' => TRUE, ); - - $form['autosubmit'] = array( - '#type' => 'checkbox', - '#title' => t('Autosubmit'), - '#description' => t('Automatically submit the form once an element is changed.'), - '#default_value' => $this->options['autosubmit'], - ); - - $form['autosubmit_hide'] = array( - '#type' => 'checkbox', - '#title' => t('Hide submit button'), - '#description' => t('Hide submit button if javascript is enabled.'), - '#default_value' => $this->options['autosubmit_hide'], - '#states' => array( - 'invisible' => array( - 'input[name="exposed_form_options[autosubmit]"]' => array('checked' => FALSE), - ), - ), - ); } /** @@ -264,19 +243,6 @@ function exposed_form_alter(&$form, &$form_state) { $pager->exposed_form_alter($form, $form_state); $form_state['pager_plugin'] = $pager; } - - - // Apply autosubmit values. - if (!empty($this->options['autosubmit'])) { - $form = array_merge_recursive($form, array('#attributes' => array('class' => array('ctools-auto-submit-full-form')))); - $form['submit']['#attributes']['class'][] = 'ctools-use-ajax'; - $form['submit']['#attributes']['class'][] = 'ctools-auto-submit-click'; - $form['#attached']['js'][] = drupal_get_path('module', 'ctools') . '/js/auto-submit.js'; - - if (!empty($this->options['autosubmit_hide'])) { - $form['submit']['#attributes']['class'][] = 'js-hide'; - } - } } function exposed_form_validate(&$form, &$form_state) {