From 23be96b5d60a29f7bd265fddd8f90cb0863b1613 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 17 Aug 2021 17:52:28 +0200 Subject: [PATCH] Restore the rest of "orderFixed" (DataTables rowgroup option) (again closes #1534) --- public/viewjs/productform.js | 2 ++ public/viewjs/recipeform.js | 1 + public/viewjs/shoppinglist.js | 1 + 3 files changed, 4 insertions(+) diff --git a/public/viewjs/productform.js b/public/viewjs/productform.js index f253d1c2..42854796 100644 --- a/public/viewjs/productform.js +++ b/public/viewjs/productform.js @@ -269,6 +269,7 @@ $("#delete-current-product-picture-button").on("click", function(e) var quConversionsTable = $('#qu-conversions-table-products').DataTable({ 'order': [[1, 'asc']], + "orderFixed": [[4, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 }, { 'searchable': false, "targets": 0 }, @@ -284,6 +285,7 @@ quConversionsTable.columns.adjust().draw(); var barcodeTable = $('#barcode-table').DataTable({ 'order': [[1, 'asc']], + "orderFixed": [[1, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 }, { 'searchable': false, "targets": 0 }, diff --git a/public/viewjs/recipeform.js b/public/viewjs/recipeform.js index e0944b79..6237ee9a 100644 --- a/public/viewjs/recipeform.js +++ b/public/viewjs/recipeform.js @@ -77,6 +77,7 @@ $('.save-recipe').on('click', function(e) var recipesPosTables = $('#recipes-pos-table').DataTable({ 'order': [[1, 'asc']], + "orderFixed": [[4, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 }, { 'searchable': false, "targets": 0 }, diff --git a/public/viewjs/shoppinglist.js b/public/viewjs/shoppinglist.js index e0715c74..50ef1b74 100644 --- a/public/viewjs/shoppinglist.js +++ b/public/viewjs/shoppinglist.js @@ -1,5 +1,6 @@ var shoppingListTable = $('#shoppinglist-table').DataTable({ 'order': [[1, 'asc']], + "orderFixed": [[3, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 }, { 'searchable': false, "targets": 0 },