mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user