diff --git a/changelog/67_UNRELEASED_xxxx-xx-xx.md b/changelog/67_UNRELEASED_xxxx-xx-xx.md index 0decbf03..6e9f50aa 100644 --- a/changelog/67_UNRELEASED_xxxx-xx-xx.md +++ b/changelog/67_UNRELEASED_xxxx-xx-xx.md @@ -10,6 +10,7 @@ - It's now possible to change a products stock QU, even after it was once added to stock - When the product was once added to stock, there needs to exist a corresponding unit conversion for the new QU +- Added the product grocycode as a (hidden by default) column to the products list (master data) ### Shopping list diff --git a/public/js/grocy.js b/public/js/grocy.js index 70c28d2e..34122eb2 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -1128,6 +1128,7 @@ $(document).on("click", ".change-table-columns-visibility-toggle", function() var dataTable = $(dataTableSelector).DataTable(); dataTable.columns(columnIndex).visible(this.checked); + LoadImagesLazy(); }); diff --git a/public/viewjs/products.js b/public/viewjs/products.js index 35807f72..894e858b 100644 --- a/public/viewjs/products.js +++ b/public/viewjs/products.js @@ -4,11 +4,13 @@ { 'orderable': false, 'targets': 0 }, { 'searchable': false, "targets": 0 }, { 'visible': false, 'targets': 7 }, + { 'visible': false, 'targets': 8 }, { "type": "html-num-fmt", "targets": 3 } ].concat($.fn.dataTable.defaults.columnDefs) }); $('#products-table tbody').removeClass("d-none"); productsTable.columns.adjust().draw(); +LoadImagesLazy(); $("#search").on("keyup", Delay(function() { diff --git a/views/products.blade.php b/views/products.blade.php index 9ebfe269..b6aee6ce 100644 --- a/views/products.blade.php +++ b/views/products.blade.php @@ -124,6 +124,7 @@