diff --git a/application/views/inspectionslist.php b/application/views/inspectionslist.php index b004747..2a2bb05 100644 --- a/application/views/inspectionslist.php +++ b/application/views/inspectionslist.php @@ -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: [{ @@ -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'], @@ -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() {