Difference between revisions of "MediaWiki:Common.js"

From cxwiki

(Created page with "Any JavaScript here will be loaded for all users on every page load.: $(document).ready( function() { var tree = $('#wikitext-sidebar'); $('#p-navigation').after( tr...")
 
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
$(document).ready( function() {
 
$(document).ready( function() {
 
   var tree = $('#wikitext-sidebar');
 
   var tree = $('#wikitext-sidebar');
   $('#p-navigation').after( tree.html() );
+
   $('#p-search').after( tree.html() );
 
   tree.remove();
 
   tree.remove();
 
});
 
});

Latest revision as of 22:03, 25 February 2018

/* Any JavaScript here will be loaded for all users on every page load. */

$(document).ready( function() {
  var tree = $('#wikitext-sidebar');
  $('#p-search').after( tree.html() );
  tree.remove();
});