diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index 3616acb581..563287a225 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -221,7 +221,9 @@ if (typeof $button === 'undefined') { var $el; - if (event.originalEvent && event.originalEvent.submitter) { + if (typeof event.originalEvent !== 'undefined' + && typeof event.originalEvent.submitter !== 'undefined' + && event.originalEvent.submitter !== null) { $el = $(event.originalEvent.submitter); } else if (typeof event.originalEvent !== 'undefined' && typeof event.originalEvent.explicitOriginalTarget === 'object') { // Firefox