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 c975804 commit 43a3f4d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions application/views/inspectionslist.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,14 @@
</div>
<script>
var ulang = '<?= ucfirst($user_lang) ?>';
var tdate = new Date();
const date = new Date();

let day = date.getDate();
let month = date.getMonth() + 1;
let year = date.getFullYear();

// This arrangement can be altered based on how we want the date's format to appear.
let currentDate = '${day}-${month}-${year}';
new DataTable('#inspectlist', {
layout: {
topStart: {
Expand All @@ -72,7 +79,7 @@
modifier: {
page: 'current'
},
filename: "itin-inspection_list_"+tdate
filename: "itin-inspection_list_"+currentDate
}
}, 'pdf', 'print'],

Expand Down

0 comments on commit 43a3f4d

Please sign in to comment.