From e346c1c88cbca652c14c1ccdf99906ff0cb86aaf Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 13 Oct 2020 14:21:11 +0200 Subject: [PATCH] events.js: Also accept `$autoSubmittedBy` from `event.detail` --- public/js/icinga/events.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index f4e6a6552..a38da25ef 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -237,6 +237,10 @@ } } + if (! $autoSubmittedBy && event.detail && event.detail.submittedBy) { + $autoSubmittedBy = $(event.detail.submittedBy); + } + _this.icinga.loader.submitForm($form, $autoSubmittedBy, $button); event.stopPropagation();