From 0773660ef26164a8ab24a151817bb148fe368f08 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 17 Sep 2020 12:33:59 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03198=20Relations=20Table=20Mode=20:=20up?= =?UTF-8?q?date=20table=20select=20line=20script=20Was=20selecting=20line?= =?UTF-8?q?=20when=20clicking=20in=20the=20ext=20key=20widget=20(drop-down?= =?UTF-8?q?=20using=20Selectize,=20search/add=20widgets)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/table-selectable-lines.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/table-selectable-lines.js b/js/table-selectable-lines.js index 5a2d0bae2..9606187c9 100644 --- a/js/table-selectable-lines.js +++ b/js/table-selectable-lines.js @@ -90,7 +90,7 @@ $(document).ready(function () { /** - * Our custom handlers chould run only if clicking on somewhere without event already attached ! + * Our custom handlers should run only if clicking on somewhere without event already attached ! * @param $eventTarget * @returns {boolean} true if our custom handler shouldn't be run */ @@ -101,12 +101,18 @@ $(document).ready(function () { if ($eventTarget.is("a, button")) { return true; } + if ($eventTarget.is(".fas, i.fa")) { // Font Awesome buttons + return true; + } if ($eventTarget.parent().is('a, button')) { return true; } if ($eventTarget.is("input, select, option")) { return true; } + if ($eventTarget.parent().is(".selectize-control,.selectize-input")) { + return true; + } if ($eventTarget.is("img")) { // too hard to determine if an event handler is attached so excluding all ! return true; }