MediaWiki:Gadget-searchFocus.js

/** _____________________________________________________________________________________ * |                                                                                    | * |                     === WARNING: GLOBAL GADGET FILE ===                             | * |                  Changes to this page affect many users. | * |   Please discuss changes on the talk page or on DDOT:Gadget before editing. | * |_____________________________________________________________________________________| * * Copied from en.wikipedia.org/wiki/MediaWiki:Gadget-searchFocus.js if ( mw.config.get( 'wgIsMainPage' ) === true ) { $( document ).ready( function {    $( '#searchInput' ).focus;  }); }