MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 765: Line 765:
         return this.nodeType === 3; // Filter text nodes
         return this.nodeType === 3; // Filter text nodes
     }).remove();
     }).remove();
   
    var newFormHtml = `
        <form action="/index.php" id="searchform">
            <div id="simpleSearch" class="right-inner-addon">
                <span>[ Search ]</span>
                <input class="form-control" name="search" placeholder="" title="Search [alt-shift-f]" accesskey="f" id="searchInput" tabindex="1" autocomplete="off" type="search">
                <span class="closing-bracket">]</span>
                <input value="Special:Search" name="title" type="hidden">
            </div>
        </form>
    `;
    // Replace the div with id="searchText" with the new form HTML
    $('#searchText').replaceWith(newFormHtml);
});
});

Navigation menu