diff --git a/core/modules/views/views_ui/admin.inc b/core/modules/views/views_ui/admin.inc
index e6215af134a..9e9f1bad303 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' => '
',
+ '#suffix' => '
',
+ '#weight' => -1000,
+ '#tree' => TRUE,
+ );
+
+ // Add the "2 of 3" progress indicator.
if ($form_progress = $view->getFormProgress()) {
$form['progress']['#markup'] = '' . t('@current of @total', array('@current' => $form_progress['current'], '@total' => $form_progress['total'])) . '
';
$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' => '',
- '#suffix' => '
',
- '#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 db5c2adf1db..c6f380d5c4b 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.