Skip to content

Commit

Permalink
Update inspectionslist.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed May 29, 2024
1 parent 26eea02 commit 5cf72ff
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions application/views/inspectionslist.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@
// This arrangement can be altered based on how we want the date's format to appear.
let currentDate = day + '-' + month + '-' + year+'_'+ hr + mint + scn;
new DataTable('#inspectlist', {
columnDefs: [
{targets: [5,7], visible: false},
{searchable: false, orderable: false, targets: [8,9,10] },
{targets: 1, render: DataTable.render.date('YYYY-MM-DD', 'DD-MM-YYYY', 'el')}

],
responsive: true,
layout: {
topStart: {
buttons: [{
Expand All @@ -91,9 +98,10 @@ className: 'btn btn-success',
title: "ITIN - Κατάλογος Επιθεωρήσεων",
exportOptions: {
modifier: {
page: 'current'
page: 'current',

},

columns: [0,1,2,3,4,5,6,7]
}
}, 'print'],

Expand All @@ -103,12 +111,8 @@ className: 'btn btn-success',
language: {
url: "//cdn.datatables.net/plug-ins/1.10.19/i18n/"+ ulang +".json"
},
stateSave: true,
columnDefs: [
{searchable: false, orderable: false, targets: [4,5,6] },
{targets: 1, render: DataTable.render.date('YYYY-MM-DD', 'DD-MM-YYYY', 'el')}
],
lengthMenu: [ 25, 50, 100 ]
/*stateSave: true,*/
lengthMenu: [ 25, 50, 100 ]
});

$(document).ready(function() {
Expand Down

0 comments on commit 5cf72ff

Please sign in to comment.