From 49b76fec0c6ed5776a9f6429b2ff41c0dadcd9a8 Mon Sep 17 00:00:00 2001 From: bitbucket Date: Thu, 20 Jun 2024 17:23:50 +0530 Subject: [PATCH] CHANGE_ table ordering asc : GWM --- app/Views/bike_model_list.php | 2 +- app/Views/client_list.php | 10 +++++----- app/Views/complaint_list.php | 2 +- app/Views/make_list.php | 2 +- app/Views/manufacturer_list.php | 2 +- app/Views/outsourcing_list.php | 2 +- app/Views/reorder_level_list.php | 2 +- app/Views/service_list.php | 2 +- app/Views/user_list.php | 6 +++--- app/Views/vehicle_list.php | 2 +- app/Views/vendor_list.php | 6 +----- 11 files changed, 17 insertions(+), 21 deletions(-) diff --git a/app/Views/bike_model_list.php b/app/Views/bike_model_list.php index 5effcf4..75bf7e2 100644 --- a/app/Views/bike_model_list.php +++ b/app/Views/bike_model_list.php @@ -273,7 +273,7 @@ var datatable_bikeModel =''; $(document).ready(function() { datatable_bikeModel = $('#datatable-bikeModel').DataTable({ - "order": [[1, 'asc']], // Set initial sorting to descending on the first column + "order": [[0, 'asc']], // Set initial sorting to descending on the first column "dom": 'Bfrtip', // Show export buttons "buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',}, {extend: 'print',title: 'Products',text: 'Print',}, diff --git a/app/Views/client_list.php b/app/Views/client_list.php index 99dbeae..403582a 100644 --- a/app/Views/client_list.php +++ b/app/Views/client_list.php @@ -42,8 +42,7 @@ - - + @@ -63,8 +62,8 @@ $(document).ready(function() { datatable_client = $('#datatable-client').DataTable({ - "order": [[1, 'asc']], // Set initial sorting to descending on the first column - "dom": 'Bfrtip', // Show export buttons + "order": [[0, 'asc']], + "dom": 'Bfrtip', "buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',}, {extend: 'print',title: 'Products',text: 'Print',}, {extend: 'copy',text: 'Copy', titleAttr: 'Copy',}, @@ -108,7 +107,8 @@ - }) + }); + function datatableMake(value) { console.log(value); diff --git a/app/Views/complaint_list.php b/app/Views/complaint_list.php index f2db43c..24c28a1 100644 --- a/app/Views/complaint_list.php +++ b/app/Views/complaint_list.php @@ -193,7 +193,7 @@ $(document).ready(function() { datatable_complaint = $('#datatable-complaint').DataTable({ - "order": [[1, 'asc']], // Set initial sorting to descending on the first column + "order": [[0, 'asc']], // Set initial sorting to descending on the first column "dom": 'Bfrtip', // Show export buttons "buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',}, {extend: 'print',title: 'Products',text: 'Print',}, diff --git a/app/Views/make_list.php b/app/Views/make_list.php index 365b55d..39b7485 100644 --- a/app/Views/make_list.php +++ b/app/Views/make_list.php @@ -299,7 +299,7 @@ $(document).ready(function() { datatable_make = $('#datatable-make').DataTable({ - "order": [[1, 'asc']], // Set initial sorting to descending on the first column + "order": [[0, 'asc']], // Set initial sorting to descending on the first column "dom": 'Bfrtip', // Show export buttons "buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',}, {extend: 'print',title: 'Products',text: 'Print',}, diff --git a/app/Views/manufacturer_list.php b/app/Views/manufacturer_list.php index d1fd80a..29343b8 100644 --- a/app/Views/manufacturer_list.php +++ b/app/Views/manufacturer_list.php @@ -157,7 +157,7 @@ var datatable_manufacturer =''; $(document).ready(function() { datatable_manufacturer = $('#datatable-manufacturer').DataTable({ - "order": [[1, 'asc']], // Set initial sorting to descending on the first column + "order": [[0, 'asc']], // Set initial sorting to descending on the first column "dom": 'Bfrtip', // Show export buttons "buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',}, {extend: 'print',title: 'Products',text: 'Print',}, diff --git a/app/Views/outsourcing_list.php b/app/Views/outsourcing_list.php index 8225bff..65f29be 100644 --- a/app/Views/outsourcing_list.php +++ b/app/Views/outsourcing_list.php @@ -206,7 +206,7 @@ $(document).ready(function() { datatable_outsource = $('#datatable-outsource').DataTable({ - "order": [[1, 'asc']], // Set initial sorting to descending on the first column + "order": [[0, 'asc']], // Set initial sorting to descending on the first column "dom": 'Bfrtip', // Show export buttons "buttons": [{extend: 'pdfHtml5',title: 'Products', text: 'PDF',}, {extend: 'print',title: 'Products',text: 'Print',}, diff --git a/app/Views/reorder_level_list.php b/app/Views/reorder_level_list.php index ed162a5..8800cd1 100644 --- a/app/Views/reorder_level_list.php +++ b/app/Views/reorder_level_list.php @@ -96,7 +96,7 @@