MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: jQuery( document ).ready( function( $ ) { mw.loader.using( 'jquery.tablesorter', function() { $('table.sortable[data-autosort]').tablesorter( {sortList: [ { 0: 'asc'} ]} ) } ); } );")
 
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
jQuery( document ).ready( function( $ ) {
    mw.loader.using( 'jquery.tablesorter', function() {
        $('table.sortable[data-autosort]').tablesorter( {sortList: [ { 0: 'asc'} ]} )
    } );
} );

Revision as of 04:41, 18 October 2022

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