Jump to content

Topic on Extension talk:MixedNamespaceSearchSuggestions

Does not work on pages with multiple search inputs

1
Rudloff (talkcontribs)

It would be nice to allow it on the "mw-searchInput" class as well:

diff --git a/resources/ext.mnss.search.js b/resources/ext.mnss.search.js
index 0a3e666..88e9149 100644
--- a/resources/ext.mnss.search.js
+++ b/resources/ext.mnss.search.js
@@ -51,7 +51,7 @@
        }

        $( document ).ready( function () {
-               var $searchInput = $( '#searchInput' );
+               var $searchInput = $( '#searchInput, .mw-searchInput' );
 
                $searchInput.suggestions( {
                        fetch: function ( query ) {
Reply to "Does not work on pages with multiple search inputs"