Difference between revisions of "MediaWiki:Common.js"
| Line 3: | Line 3: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
| − | + | mw.loader.using( 'ext.datatables', function() { | |
| + | // Add the default datatables markup | ||
$( '#ccode' ).dataTable(); | $( '#ccode' ).dataTable(); | ||
| + | }); | ||
| + | |||
} ); | } ); | ||
Revision as of 15:39, 12 December 2018
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function() {
mw.loader.using( 'ext.datatables', function() {
// Add the default datatables markup
$( '#ccode' ).dataTable();
});
} );