From 0a600d3277547a76e20a7f7e025a3e9a2240d1dc Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Wed, 11 Nov 2020 22:28:05 +0100 Subject: [PATCH] Fix hide/view columns dialog did not work on pages with more than 1 table (references #1058) --- public/js/grocy.js | 2 +- views/batteries.blade.php | 3 +-- views/batteriesjournal.blade.php | 4 ++-- views/batteriesoverview.blade.php | 4 ++-- views/chores.blade.php | 4 ++-- views/choresjournal.blade.php | 4 ++-- views/choresoverview.blade.php | 4 ++-- views/equipment.blade.php | 4 ++-- views/locations.blade.php | 4 ++-- views/manageapikeys.blade.php | 4 ++-- views/productform.blade.php | 9 ++++----- views/productgroups.blade.php | 4 ++-- views/products.blade.php | 4 ++-- views/quantityunitform.blade.php | 4 ++-- views/quantityunits.blade.php | 4 ++-- views/recipeform.blade.php | 8 ++++---- views/recipes.blade.php | 4 ++-- views/shoppinglist.blade.php | 4 ++-- views/shoppinglocations.blade.php | 4 ++-- views/stockentries.blade.php | 4 ++-- views/stockjournal.blade.php | 4 ++-- views/stockoverview.blade.php | 4 ++-- views/taskcategories.blade.php | 4 ++-- views/tasks.blade.php | 4 ++-- views/userentities.blade.php | 4 ++-- views/userfields.blade.php | 4 ++-- views/users.blade.php | 4 ++-- 27 files changed, 56 insertions(+), 58 deletions(-) diff --git a/public/js/grocy.js b/public/js/grocy.js index c83134ed..2be5b6e5 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -762,7 +762,7 @@ $(window).on("message", function(e) } }); -$("#change-table-columns-visibility").on("click", function(e) +$(".change-table-columns-visibility-button").on("click", function(e) { var dataTableSelector = $(e.currentTarget).attr("data-table-selector"); var dataTable = $(dataTableSelector).DataTable(); diff --git a/views/batteries.blade.php b/views/batteries.blade.php index a7222692..9d4e72a2 100644 --- a/views/batteries.blade.php +++ b/views/batteries.blade.php @@ -70,8 +70,7 @@ class="table table-sm table-striped nowrap w-100"> - - - - - - - - - - - {{ $__t('Quantity unit from') }} diff --git a/views/productgroups.blade.php b/views/productgroups.blade.php index 4949fe6a..179255fe 100644 --- a/views/productgroups.blade.php +++ b/views/productgroups.blade.php @@ -70,8 +70,8 @@ class="table table-sm table-striped nowrap w-100"> - - - - - - - - - - - - - - - - -