Commit 5efa7d55 authored by webchick's avatar webchick

Issue #2130205 by damiankloip, rbayliss, olli: Unable to "Expose this filter...

Issue #2130205 by damiankloip, rbayliss, olli: Unable to "Expose this filter to visitors, to allow them to change it".
parent 1adeb2ed
......@@ -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();
......
......@@ -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;
}
......
......@@ -861,7 +861,7 @@
*/
Drupal.viewsUi.Checkboxifier.prototype.clickHandler = function (e) {
this.$button
.trigger('mousedown')
.trigger('click')
.trigger('submit');
};
......
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