mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Show the products grocycode as a (hidden by default) column on /products (closes #1820)
This commit is contained in:
@@ -1128,6 +1128,7 @@ $(document).on("click", ".change-table-columns-visibility-toggle", function()
|
||||
var dataTable = $(dataTableSelector).DataTable();
|
||||
|
||||
dataTable.columns(columnIndex).visible(this.checked);
|
||||
LoadImagesLazy();
|
||||
});
|
||||
|
||||
|
||||
|
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user