Commit 26fe08d8 authored by webchick's avatar webchick

Issue #1832872 follow-up by dawehner: Fixed broken Views UI search box/filtering.

parent 3e9ae8f1
......@@ -418,9 +418,16 @@ function views_ui_standard_display_dropdown(&$form, &$form_state, $section) {
$displays = $executable->displayHandlers;
$current_display = $executable->display_handler;
// Add the "2 of 3" progress indicator.
// @TODO: Move this to a separate function if it's needed on any forms that
// @todo Move this to a separate function if it's needed on any forms that
// don't have the display dropdown.
$form['override'] = array(
'#prefix' => '<div class="views-override clearfix container-inline">',
'#suffix' => '</div>',
'#weight' => -1000,
'#tree' => TRUE,
);
// Add the "2 of 3" progress indicator.
if ($form_progress = $view->getFormProgress()) {
$form['progress']['#markup'] = '<div id="views-progress-indicator">' . t('@current of @total', array('@current' => $form_progress['current'], '@total' => $form_progress['total'])) . '</div>';
$form['progress']['#weight'] = -1001;
......@@ -449,12 +456,6 @@ function views_ui_standard_display_dropdown(&$form, &$form_state, $section) {
$display_dropdown['default_revert'] = t('Revert to default');
}
$form['override'] = array(
'#prefix' => '<div class="views-override clearfix container-inline">',
'#suffix' => '</div>',
'#weight' => -1000,
'#tree' => TRUE,
);
$form['override']['dropdown'] = array(
'#type' => 'select',
'#title' => t('For'), // @TODO: Translators may need more context than this.
......@@ -1216,7 +1217,6 @@ function views_ui_add_item_form($form, &$form_state) {
$type = $form_state['type'];
$form = array(
'override' => array(),
'options' => array(
'#theme_wrappers' => array('container'),
'#attributes' => array('class' => array('scroll')),
......
......@@ -345,7 +345,7 @@ Drupal.viewsUi.OptionsSearch = function ($form) {
this.$form = $form;
// Add a keyup handler to the search box.
this.$searchBox = this.$form.find('#edit-options-search');
this.$searchBox = this.$form.find('#edit-override-controls-options-search');
this.$searchBox.keyup(jQuery.proxy(this.handleKeyup, this));
// Get a list of option labels and their corresponding divs and maintain it
// in memory, so we have as little overhead as possible at keyup time.
......
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