Rewrite rendering of Vector simple search
[lhc/web/wiklou.git] / resources / mediawiki / mediawiki.searchSuggest.js
index 50915b6..9fcd42a 100644 (file)
                                // make sure paste and cut events from the mouse and drag&drop events
                                // trigger the keypress handler and cause the suggestions to update
                                $( this ).trigger( 'keypress' );
-                       } );
+                       } )
+                       // If the forms include any fulltext search thingies, remove them as they
+                       // would interfere with selecting suggestions
+                       .closest( 'form' ).find( '[name="fulltext"]' ).remove();
 
                // Ensure that the thing is actually present!
                if ( $searchRegion.length === 0 ) {