Jump to content

User:Iritscen/vector.js: Difference between revisions

testing search-focus code, taken from https://en.wikipedia.org/wiki/MediaWiki:Gadget-searchFocus.js
(remove XEB customization, as XEB is obsolete now)
(testing search-focus code, taken from https://en.wikipedia.org/wiki/MediaWiki:Gadget-searchFocus.js)
Line 5: Line 5:
}
}


// Place us in the Search box if we're on the Main Page so we can immediately start typing
if (mw.config.get('wgIsMainPage'))
{
  $(function()
  {
    $('#searchInput').focus();
  });
}
// This code is disabled but left in place since it is referred to on [[MediaWiki:Common]]
// Add handy links to my sidebar
// Add handy links to my sidebar
// This code is disabled but left in place since it is referred to on [[MediaWiki:Common]]
/*$(function()
/*$(function()
{
{