Don't stop auto-refresh when a form button has focus

This commit is contained in:
Eric Lippmann 2016-12-06 14:49:38 +01:00
parent f53eb48e38
commit eef982f3c3
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@
&& ! $(origFocus).hasClass('autofocus') && ! $(origFocus).hasClass('autofocus')
&& ! $(origFocus).hasClass('autosubmit') && ! $(origFocus).hasClass('autosubmit')
&& $(origFocus).closest('form').length && $(origFocus).closest('form').length
&& $(origFocus).not(':input[type=button], :input[type=submit], :input[type=reset]').length
) { ) {
icinga.logger.debug('Not changing content for ' + containerId + ' form has focus'); icinga.logger.debug('Not changing content for ' + containerId + ' form has focus');
return null; return null;