Difference between revisions of "MediaWiki:Common.js"
Nils Duepont (talk | contribs) |
Nils Duepont (talk | contribs) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
// Add the default datatables markup | // Add the default datatables markup | ||
$('#ccode').DataTable( { | $('#ccode').DataTable( { | ||
| − | "order": [[ | + | "order": [[ 1, "asc" ]], |
| + | "lengthMenu": [[100, 150, 200, -1], [100, 150, 200, "All"]], | ||
} ); | } ); | ||
}); | }); | ||
Latest revision as of 16:23, 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": [[ 1, "asc" ]],
"lengthMenu": [[100, 150, 200, -1], [100, 150, 200, "All"]],
} );
});
} );