Skip to content

Commit

Permalink
Update public/js/icinga/events.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg authored Nov 4, 2024
1 parent e5f0abf commit 334b24e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/js/icinga/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 334b24e

Please sign in to comment.