Put menus/popups of infused PHP widgets into the default overlay
[lhc/web/wiklou.git] / includes / widget / SearchInputWidget.php
index ba08ba6..e2428ba 100644 (file)
@@ -32,10 +32,8 @@ class SearchInputWidget extends TitleInputWidget {
                $config = array_merge( [
                        'maxLength' => null,
                        'icon' => 'search',
-                       'showImages' => false,
                ], $config );
 
-               // Parent constructor
                parent::__construct( $config );
 
                // Properties, which are ignored in PHP and just shipped back to JS
@@ -70,6 +68,7 @@ class SearchInputWidget extends TitleInputWidget {
                if ( $this->dataLocation ) {
                        $config['dataLocation'] = $this->dataLocation;
                }
+               $config['$overlay'] = true;
                return parent::getConfig( $config );
        }
 }