From 0ea550ed21315c6581fc31835e5ceed71b4bd855 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 9 Nov 2022 09:03:21 +0100 Subject: [PATCH] form.js: Don't ignore autosubmit elements A while ago this already has changed so that autosubmit responses are guaranteed to be applied. Thus this exception is now obsolete. fixes #4942 (cherry picked from commit 8cd892359d1770260e10486554764bcd8c0be797) --- public/js/icinga/behavior/form.js | 1 - 1 file changed, 1 deletion(-) diff --git a/public/js/icinga/behavior/form.js b/public/js/icinga/behavior/form.js index 6515aa261..ca9db3b70 100644 --- a/public/js/icinga/behavior/form.js +++ b/public/js/icinga/behavior/form.js @@ -81,7 +81,6 @@ if ($container.has(origFocus).length && $(origFocus).length && ! $(origFocus).hasClass('autofocus') - && ! $(origFocus).hasClass('autosubmit') && $(origFocus).closest('form').length && $(origFocus).not(':input[type=button], :input[type=submit], :input[type=reset]').length ) {