MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
}); | }); | ||
}); | }); | ||
$(document).ready(function () { | |||
var table = $('#example').DataTable(); | |||
// Spaltensuche aktivieren | |||
$('#example thead tr:eq(1) th').each(function (i) { | |||
$('input', this).on('keyup change', function () { | |||
if (table.column(i).search() !== this.value) { | |||
table.column(i).search(this.value).draw(); | |||
} | |||
}); | |||
}); | |||
}); |