mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Add some more columns (hidden by default) (references https://github.com/grocy/grocy/issues/1058#issuecomment-744059155)
This commit is contained in:
@@ -287,7 +287,8 @@ var barcodeTable = $('#barcode-table').DataTable({
|
||||
"orderFixed": [[1, 'asc']],
|
||||
'columnDefs': [
|
||||
{ 'orderable': false, 'targets': 0 },
|
||||
{ 'searchable': false, "targets": 0 }
|
||||
{ 'searchable': false, "targets": 0 },
|
||||
{ 'visible': false, 'targets': 5 }
|
||||
].concat($.fn.dataTable.defaults.columnDefs)
|
||||
});
|
||||
$('#barcode-table tbody').removeClass("d-none");
|
||||
|
@@ -3,6 +3,7 @@
|
||||
'columnDefs': [
|
||||
{ 'orderable': false, 'targets': 0 },
|
||||
{ 'searchable': false, "targets": 0 },
|
||||
{ 'visible': false, 'targets': 7 },
|
||||
{ "type": "html-num-fmt", "targets": 3 }
|
||||
].concat($.fn.dataTable.defaults.columnDefs)
|
||||
});
|
||||
|
@@ -11,10 +11,14 @@
|
||||
{ 'visible': false, 'targets': 4 },
|
||||
{ 'visible': false, 'targets': 9 },
|
||||
{ 'visible': false, 'targets': 10 },
|
||||
{ 'visible': false, 'targets': 11 },
|
||||
{ 'visible': false, 'targets': 12 },
|
||||
{ "type": "num", "targets": 3 },
|
||||
{ "type": "html-num-fmt", "targets": 9 },
|
||||
{ "type": "html-num-fmt", "targets": 10 },
|
||||
{ "type": "html", "targets": 5 }
|
||||
{ "type": "html", "targets": 5 },
|
||||
{ "type": "html", "targets": 11 },
|
||||
{ "type": "html-num-fmt", "targets": 12 },
|
||||
].concat($.fn.dataTable.defaults.columnDefs)
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user