From 62544111ff046986ba892469b21b867d5830d912 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 9 Oct 2014 13:42:15 +0200 Subject: [PATCH] Fix that when pushing ENTER in a form with just no button is sent --- public/js/icinga/events.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index 5f62a8c8a..6ac176b1d 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -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();