MediaWiki:Datatables custom.js: Difference between revisions
From Comprehensible Input Wiki
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
$(document).ready( function () { |
|||
// Create <thead> for DataTables to work |
// Create <thead> for DataTables to work |
||
var header = document.getElementById('library').createTHead().id = 'lib-thead'; |
var header = document.getElementById('library').createTHead().id = 'lib-thead'; |
||
Line 5: | Line 7: | ||
// Activate DataTable |
// Activate DataTable |
||
$('#library').DataTable(); |
$('#library').DataTable(); |
||
} |