mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
js/events: ignore button/submit clicks
In case you clicked a (submit) button in an action row this also also triggered that row's click handler. As the event is going to be stopped there, this leads to "unsubmittable forms". Fixed. fixes #6963
This commit is contained in:
parent
686152abf3
commit
538c6cf90b
@ -501,6 +501,12 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore form elements in action rows
|
||||||
|
if ($(event.target).is('input') || $(event.target).is('button')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ignore multiselect table row clicks
|
// ignore multiselect table row clicks
|
||||||
if ($a.is('tr') && $a.closest('table.multiselect').length > 0) {
|
if ($a.is('tr') && $a.closest('table.multiselect').length > 0) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user