Fixed DataTables earch / don't search the first column with buttons/menus (fixes #440)

This commit is contained in:
Bernd Bestel
2020-01-03 14:18:56 +01:00
parent 6345e69922
commit e515f21d3b
25 changed files with 45 additions and 19 deletions

View File

@@ -66,6 +66,7 @@ var recipesPosTables = $('#recipes-pos-table').DataTable({
"orderFixed": [[4, 'asc']],
'columnDefs': [
{ 'orderable': false, 'targets': 0 },
{ 'searchable': false, "targets": 0 },
{ 'visible': false, 'targets': 4 }
],
'rowGroup': {
@@ -78,7 +79,8 @@ recipesPosTables.columns.adjust().draw();
var recipesIncludesTables = $('#recipes-includes-table').DataTable({
'order': [[1, 'asc']],
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
{ 'orderable': false, 'targets': 0 },
{ 'searchable': false, "targets": 0 }
]
});
$('#recipes-includes-table tbody').removeClass("d-none");