Jump to content

User:Iritscen/vector.js: Difference between revisions

feature has been moved to Common.js
(testing search-focus code, taken from https://en.wikipedia.org/wiki/MediaWiki:Gadget-searchFocus.js)
(feature has been moved to Common.js)
Line 3: Line 3:
{
{
   mw.loader.load('/w/index.php?title=User:Iritscen/TestSpace.js&action=raw&ctype=text/javascript');
   mw.loader.load('/w/index.php?title=User:Iritscen/TestSpace.js&action=raw&ctype=text/javascript');
}
// 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();
  });
}
}