Skip to content

Commit

Permalink
datatables
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed May 28, 2024
1 parent 521019e commit 3178460
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions application/views/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<script src="<?php echo base_url(); ?>assets/js/webcam.min.js"></script>
<script src="<?php echo base_url(); ?>assets/js/qrcode.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.10.18/r-2.2.2/rg-1.1.0/datatables.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.2/moment.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/buttons/3.0.2/js/dataTables.buttons.min.js"></script>
</head>
<body>
Expand Down
6 changes: 5 additions & 1 deletion application/views/inspectionslist.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@
"url": "//cdn.datatables.net/plug-ins/1.10.19/i18n/"+ ulang +".json"
},
"columnDefs": [
{"searchable": false, "orderable": false, "targets": 6 }
{"searchable": false, "orderable": false, "targets": 6 },
{
"targets": 1,
"render": DataTable.render.date()
}
],
"lengthMenu": [ 25, 50, 100 ]
});
Expand Down

0 comments on commit 3178460

Please sign in to comment.