From 5c62377ba6536d27564e95399de1d3b4af10e913 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Mon, 24 Aug 2020 18:42:32 +0200 Subject: [PATCH] Don't trigger row select event on first column (fixes #791) --- changelog/60_UNRELEASED_2020-xx-xx.md | 1 + public/viewjs/recipes.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog/60_UNRELEASED_2020-xx-xx.md b/changelog/60_UNRELEASED_2020-xx-xx.md index 22a43621..a69291bc 100644 --- a/changelog/60_UNRELEASED_2020-xx-xx.md +++ b/changelog/60_UNRELEASED_2020-xx-xx.md @@ -35,6 +35,7 @@ - Fixed that decimal ingredient amounts maybe resulted in wrong conversions truncated decimal places if your locale does not use a dot as the decimal separator (thanks @m-byte) - Fixed that a recipe cannot be included in itself (because this will cause an infinite loop) (thanks @fipwmaqzufheoxq92ebc) - Fixed that when editing a recipe ingredient the checkbox "Disable stock fulfillment checking for this ingredient" was not initaliased with the saved value +- Fixed that when using the "+"-symbol (which appears on small screens only to expand columns which don't fit the screen) the page reloaded ### Chores improvements/fixes - Changed that not assigned chores on the chores overview page display now just a dash instead of an ellipsis in the "Assigned to" column to make this more clear (thanks @Germs2004) diff --git a/public/viewjs/recipes.js b/public/viewjs/recipes.js index 32a9c2cb..3f90cc67 100644 --- a/public/viewjs/recipes.js +++ b/public/viewjs/recipes.js @@ -5,7 +5,10 @@ { 'searchable': false, "targets": 0 }, { 'orderData': 2, 'targets': 1 } ], - 'select': 'single', + select: { + style: 'single', + selector: 'tr td:not(:first-child)' + }, 'initComplete': function() { this.api().row({ order: 'current' }, 0).select();