MediaWiki:Gadget-searchFocus.js: Difference between revisions

From Bharatpedia, an open encyclopedia
>Krinkle
m (minor clean up)
 
m (→‎top: clean up, replaced: Wikipedia → Bharatpedia (2))
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
// |                    === WARNING: GLOBAL GADGET FILE ===                                  |
// |                    === WARNING: GLOBAL GADGET FILE ===                                  |
// |                  Changes to this page affect many users.                                |
// |                  Changes to this page affect many users.                                |
// | Please discuss changes on the talk page or on [[Wikipedia_talk:Gadget]] before editing. |
// | Please discuss changes on the talk page or on [[Bharatpedia_talk:Gadget]] before editing. |
// |_________________________________________________________________________________________|
// |_________________________________________________________________________________________|
//
//
// Imported from [[Wikipedia:FAQ/Main Page]] as of April 1, 2008
// Imported from [[Bharatpedia:FAQ/Main Page]] as of April 1, 2008


if ( mw.config.get( 'wgIsMainPage' ) ) {
if ( mw.config.get( 'wgIsMainPage' ) ) {

Latest revision as of 17:07, 10 June 2021

//  _________________________________________________________________________________________
// |                                                                                         |
// |                    === WARNING: GLOBAL GADGET FILE ===                                  |
// |                  Changes to this page affect many users.                                |
// | Please discuss changes on the talk page or on [[Bharatpedia_talk:Gadget]] before editing. |
// |_________________________________________________________________________________________|
//
// Imported from [[Bharatpedia:FAQ/Main Page]] as of April 1, 2008

if ( mw.config.get( 'wgIsMainPage' ) ) {
  $( function () {
    $( '#searchInput' ).focus();
  } );
}