Difference between revisions of "MediaWiki:Common.js"

Line 5: Line 5:
 
});
 
});
 
});
 
});
 +
var $sortableTables = $content.find( 'table.sortable' );
 +
if ( $sortableTables.length ) {
 +
    mw.loader.using( 'jquery.tablesorter' ).then( function () {
 +
        $sortableTables.tablesorter();
 +
    } );
 +
}

Revision as of 18:05, 16 November 2018

$(function(){
	importArticles({
		type: "script",
		articles: ["dahuawiki.com:MediaWiki:SortTableFilter.js"]
	});
});
var $sortableTables = $content.find( 'table.sortable' );
if ( $sortableTables.length ) {
    mw.loader.using( 'jquery.tablesorter' ).then( function () {
        $sortableTables.tablesorter();
    } );
}