MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Nils Duepont (talk | contribs) No edit summary |
||
| Line 3: | Line 3: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
mw.loader.using( 'ext.datatables', function() { | mw.loader.using( 'ext.datatables', function() { | ||
// Add the default datatables markup | |||
$( '#ccode' ). | $('#ccode').DataTable( { | ||
"order": [[ 3, "desc" ]] | |||
} ); | |||
}); | }); | ||
} ); | } ); | ||
Revision as of 15:14, 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( {
"order": [[ 3, "desc" ]]
} );
});
} );