Difference between revisions of "MediaWiki: Common.js"

From Terracoin Wiki
Jump to: navigation, search
(Created page with "Any JavaScript here will be loaded for all users on every page load.: $(document).ready( function() { var tree = $('#wikitext-sidebar'); $('#p-logo').after( tree.html...")
 
Line 2: Line 2:
 
$(document).ready( function() {
 
$(document).ready( function() {
 
var tree = $('#wikitext-sidebar');
 
var tree = $('#wikitext-sidebar');
$('#p-logo').after( tree.html() );
+
$('#p-logo').after( tree.html() ).bind('fancytreeinit', function(event, data) {
 
data.tree.makeTitleVisible();
 
});
 
tree.remove();
 
tree.remove();
});
 
 
$(document).ready( function() {
 
$('#tree').bind('fancytreeinit', function(event, data) {
 
data.tree.makeTitleVisible();
 
});
 
 
});
 
});

Revision as of 21:59, 25 January 2018

/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready( function() {
  var tree = $('#wikitext-sidebar');
  $('#p-logo').after( tree.html() ).bind('fancytreeinit', function(event, data) {
    data.tree.makeTitleVisible();
  });
  tree.remove();
});