Difference between revisions of "MediaWiki:Common.js"

From Reallusion Wiki!
Jump to: navigation, search
Line 6: Line 6:
 
         $(tree).show();
 
         $(tree).show();
 
         $(tree).bind('fancytreeinit', function(event, data) {
 
         $(tree).bind('fancytreeinit', function(event, data) {
console.log('fancytreeinit');
+
console.log(data);
 
             data.tree.makeTitleVisible();
 
             data.tree.makeTitleVisible();
 
         });
 
         });
 
     }
 
     }
 
});
 
});

Revision as of 22:08, 6 May 2020

/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready( function() {
    if (location.pathname.toLowerCase().indexOf('/ic_python_api')===0) {
        var tree = $('#wikitext-sidebar');
        $(tree).detach().appendTo("#mw-panel");
        $(tree).show();
        $(tree).bind('fancytreeinit', function(event, data) {
console.log(data);
            data.tree.makeTitleVisible();
        });
    }
});