mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Fixed shopping list print view table/list sorting (fixes #2602)
This commit is contained in:
@@ -22,8 +22,7 @@ $('#shoppinglist-table tbody').removeClass("d-none");
|
||||
shoppingListTable.columns.adjust().draw();
|
||||
|
||||
var shoppingListPrintShadowTable = $('#shopping-list-print-shadow-table').DataTable({
|
||||
'order': [[1, 'asc']],
|
||||
"orderFixed": [[2, 'asc']],
|
||||
"orderFixed": [[0, 'asc'], [2, 'asc']],
|
||||
'columnDefs': [
|
||||
{ 'visible': false, 'targets': 2 },
|
||||
{ 'orderable': false, 'targets': '_all' }
|
||||
@@ -500,7 +499,6 @@ $(document).on("click", "#print-shopping-list-button", function(e)
|
||||
if (!$("#print-group-by-product-group").prop("checked"))
|
||||
{
|
||||
shoppingListPrintShadowTable.rowGroup().enable(false);
|
||||
shoppingListPrintShadowTable.order.fixed({});
|
||||
shoppingListPrintShadowTable.draw();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user