events.js: Also accept `$autoSubmittedBy` from `event.detail`

This commit is contained in:
Johannes Meyer 2020-10-13 14:21:11 +02:00
parent 3e29fba052
commit e346c1c88c
1 changed files with 4 additions and 0 deletions

View File

@ -237,6 +237,10 @@
}
}
if (! $autoSubmittedBy && event.detail && event.detail.submittedBy) {
$autoSubmittedBy = $(event.detail.submittedBy);
}
_this.icinga.loader.submitForm($form, $autoSubmittedBy, $button);
event.stopPropagation();