Difference between revisions of "MediaWiki:Common.js"
Nils Duepont (talk | contribs) |
|||
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 16: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" ]] } ); }); } );