modal.js: Submit form only once

This commit is contained in:
Sukhwinder Dhillon 2021-09-21 12:38:07 +02:00
parent 869b63c263
commit 414a2ff7aa
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@
var _this = event.data.self;
var $form = $(event.currentTarget).closest('form');
var $modal = $form.closest('#modal');
// otherwise the form is submitted several times by clicking the "Submit" button several times
$form.find('input:not(:disabled)').prop('disabled', true);
var req = _this.icinga.loader.submitForm($form, $autoSubmittedBy);
req.addToHistory = false;