hr dan payroll
This commit is contained in:
@@ -30,9 +30,19 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
|
||||
let table = $('#tableActivity').DataTable({
|
||||
$(function () {
|
||||
|
||||
if (!$.fn || typeof $.fn.DataTable !== 'function') {
|
||||
$('#tableActivity tbody').remove();
|
||||
$('#tableActivity').append(
|
||||
'<tbody><tr><td colspan="7" class="text-center text-danger py-4">' +
|
||||
'Komponen tabel gagal dimuat. Silakan muat ulang halaman.' +
|
||||
'</td></tr></tbody>'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
let table = $('#tableActivity').DataTable({
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
ajax: {
|
||||
@@ -99,4 +109,4 @@ $(function () {
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user