Fix that when pushing ENTER in a form with just <buttons> no button is sent

This commit is contained in:
Johannes Meyer 2014-10-09 13:42:15 +02:00
parent f8f27e046d
commit 62544111ff
1 changed files with 3 additions and 0 deletions

View File

@ -205,6 +205,9 @@
if ($button.length === 0) {
$button = $('input[type=submit]', $form).first();
if ($button.length === 0) {
$button = $('button[type=submit]', $form).first();
}
}
event.stopPropagation();