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:
Thomas Gelf 2014-08-20 09:26:16 +02:00
parent 686152abf3
commit 538c6cf90b
1 changed files with 6 additions and 0 deletions

View File

@ -501,6 +501,12 @@
return false;
}
// Ignore form elements in action rows
if ($(event.target).is('input') || $(event.target).is('button')) {
return;
}
// ignore multiselect table row clicks
if ($a.is('tr') && $a.closest('table.multiselect').length > 0) {
return;