modal.js: Submit form only once
This commit is contained in:
parent
869b63c263
commit
414a2ff7aa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue