diff --git a/app/Views/configlisting.php b/app/Views/configlisting.php index 0796b75a..aec8b2ad 100755 --- a/app/Views/configlisting.php +++ b/app/Views/configlisting.php @@ -172,7 +172,7 @@ isActive == 1 ? 'Active' : 'InActive'; ?> - ; // Default to 1 if not set diff --git a/app/Views/costListing.php b/app/Views/costListing.php index a6a70462..7d49da7e 100755 --- a/app/Views/costListing.php +++ b/app/Views/costListing.php @@ -134,7 +134,7 @@     -    - \ No newline at end of file diff --git a/app/Views/factoryMachineMasterDetails.php b/app/Views/factoryMachineMasterDetails.php index a3545514..4b752a24 100644 --- a/app/Views/factoryMachineMasterDetails.php +++ b/app/Views/factoryMachineMasterDetails.php @@ -170,7 +170,7 @@ - @@ -241,6 +241,18 @@ e.preventDefault(); table.draw(); }); + + $('#datatable').on('click', '.edit-btn', function () { + const pageInfo = table.page.info(); // Now this works + sessionStorage.setItem("datatablePage", pageInfo.page); + }); + + // Restore page + let startPage = sessionStorage.getItem("datatablePage"); + if (startPage !== null) { + table.page(parseInt(startPage)).draw('page'); + sessionStorage.removeItem("datatablePage"); + } }); diff --git a/app/Views/stock/CoatingMachineDetail.php b/app/Views/stock/CoatingMachineDetail.php index 1d1a29a4..fd4a2cb9 100644 --- a/app/Views/stock/CoatingMachineDetail.php +++ b/app/Views/stock/CoatingMachineDetail.php @@ -181,7 +181,7 @@ /*background-color: #fff;*/ /* */ border: 1px solid #ccc; - padding: 10px 4px; + padding: 5px 6px; min-width: 120px; max-width: 120px; } diff --git a/app/Views/stock/bagStockDetails.php b/app/Views/stock/bagStockDetails.php index b1b523d5..151f6031 100644 --- a/app/Views/stock/bagStockDetails.php +++ b/app/Views/stock/bagStockDetails.php @@ -183,7 +183,7 @@ /* */ text-align: center; border: 1px solid #ccc; - padding: 10px 6px; + padding: 5px 6px; } diff --git a/app/Views/stock/dieselStockDetails.php b/app/Views/stock/dieselStockDetails.php index f5b2da8f..f6b90cf8 100644 --- a/app/Views/stock/dieselStockDetails.php +++ b/app/Views/stock/dieselStockDetails.php @@ -187,7 +187,7 @@ /* */ text-align: center; border: 1px solid #ccc; - padding: 10px 6px; + padding: 5px 6px; } diff --git a/app/Views/stock/drierMachineDetails.php b/app/Views/stock/drierMachineDetails.php index e990901d..5d2a39d8 100644 --- a/app/Views/stock/drierMachineDetails.php +++ b/app/Views/stock/drierMachineDetails.php @@ -184,7 +184,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y'); /*background-color: #fff;*/ /* */ border: 1px solid #ccc; - padding: 10px 4px; + padding: 5px 6px; min-width: 120px; max-width: 120px; } @@ -452,7 +452,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');