Actions

MediaWiki

Difference between revisions of "Common.js"

From DT Online

(Add code to move buyers guide below category lists if both appear on a page)
 
Line 2: Line 2:
 
$(function()
 
$(function()
 
{
 
{
  if($('.buyers-guide).length && $('#mw-pages').length) $('.buyers-guide'.insertAfter($('#mw-pages'))
+
  if($('.buyers-guide').length && $('#mw-pages').length) $('.buyers-guide').insertAfter($('#mw-pages'))
 
}
 
}
 
);
 
);

Revision as of 16:23, 1 November 2016

/* Any JavaScript here will be loaded for all users on every page load. */
$(function()
{
 if($('.buyers-guide').length && $('#mw-pages').length) $('.buyers-guide').insertAfter($('#mw-pages'))
}
);