MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Tag: Reverted
Line 1,161: Line 1,161:
     // Edits regarding Search Results
     // Edits regarding Search Results
     // Define the new form HTML as a string
     // Define the new form HTML as a string
     var newFormHtml = '<form action="/index.php" id="searchform">' +
     /* var newFormHtml = '<form action="/index.php" id="searchform">' +
         '<div id="simpleSearchSpecial" class="right-inner-addon">' +
         '<div id="simpleSearchSpecial" class="right-inner-addon">' +
         '<span>[ Search ]</span>' +
         '<span>[ Search ]</span>' +
Line 1,168: Line 1,168:
         '<input value="Special:Search" name="title" type="hidden">' +
         '<input value="Special:Search" name="title" type="hidden">' +
         '</div>' +
         '</div>' +
         '</form>';
         '</form>'; */
      
      
     // Replace the div with id="searchText" with the new form
     // Replace the div with id="searchText" with the new form
     $('#searchText').replaceWith(newFormHtml);
     /* $('#searchText').replaceWith(newFormHtml); */
      
      
     // Target the button based on its complex class structure
     // Target the button based on its complex class structure
     $(".oo-ui-actionFieldLayout-button .oo-ui-buttonInputWidget").remove();
     /* $(".oo-ui-actionFieldLayout-button .oo-ui-buttonInputWidget").remove(); */


     // Check if #submit button exists and add event listener if it does
     // Check if #submit button exists and add event listener if it does

Navigation menu