N°3198 Relations Table Mode : update table select line script

Was selecting line when clicking in the ext key widget (drop-down using Selectize, search/add widgets)
This commit is contained in:
Pierre Goiffon
2020-09-17 12:33:59 +02:00
parent eded4814a1
commit 0773660ef2

View File

@@ -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;
}