diff --git a/core/modules/views/views_ui/admin.inc b/core/modules/views/views_ui/admin.inc index e6215af134a387c0a0171d23cf0c9248bb1d8f93..9e9f1bad303d57a1864bf03ecf18d9b0db1fc0b7 100644 --- a/core/modules/views/views_ui/admin.inc +++ b/core/modules/views/views_ui/admin.inc @@ -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')), diff --git a/core/modules/views/views_ui/js/views-admin.js b/core/modules/views/views_ui/js/views-admin.js index db5c2adf1dbf7cb3580bceccd8dd97daa9239d3c..c6f380d5c4b0213e8cb3b288fdf75614d4622075 100644 --- a/core/modules/views/views_ui/js/views-admin.js +++ b/core/modules/views/views_ui/js/views-admin.js @@ -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.