mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
🎨 Fix invalid formatting introduced in 827b4b5bbe
This commit is contained in:
@@ -95,24 +95,19 @@ $(document).ready(function () {
|
|||||||
* @returns {boolean} true if our custom handler shouldn't be run
|
* @returns {boolean} true if our custom handler shouldn't be run
|
||||||
*/
|
*/
|
||||||
function shouldExitHandler($eventTarget) {
|
function shouldExitHandler($eventTarget) {
|
||||||
if ($eventTarget.is("table"))
|
if ($eventTarget.is("table")) { // might happen on cell padding/margin/border
|
||||||
{ // might happen on cell padding/margin/border
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ($eventTarget.is("a, button"))
|
if ($eventTarget.is("a, button")) {
|
||||||
{
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ($eventTarget.parent().is("a, button"))
|
if ($eventTarget.parent().is("a, button")) {
|
||||||
{
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ($eventTarget.is("input, select, option"))
|
if ($eventTarget.is("input, select, option")) {
|
||||||
{
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ($eventTarget.is("img"))
|
if ($eventTarget.is("img")) { // too hard to determine if an event handler is attached so excluding all !
|
||||||
{ // too hard to determine if an event handler is attached so excluding all !
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user