From 334b24ef01dff63fb9ab60755f03ee4e564115b8 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 4 Nov 2024 15:31:21 +0100 Subject: [PATCH] Update public/js/icinga/events.js --- public/js/icinga/events.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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