diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index 1878d8f604..3616acb581 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -221,7 +221,9 @@ if (typeof $button === 'undefined') { var $el; - if (typeof event.originalEvent !== 'undefined' + if (event.originalEvent && event.originalEvent.submitter) { + $el = $(event.originalEvent.submitter); + } else if (typeof event.originalEvent !== 'undefined' && typeof event.originalEvent.explicitOriginalTarget === 'object') { // Firefox $el = $(event.originalEvent.explicitOriginalTarget); _this.icinga.logger.debug('events/submitForm: Button is event.originalEvent.explicitOriginalTarget');