Disable all form controls on submit to prevent resubmission

fixes #7151
This commit is contained in:
Eric Lippmann 2015-05-28 09:44:01 +02:00
parent 31400ea16a
commit 1bfbce98ac
1 changed files with 4 additions and 0 deletions

View File

@ -274,6 +274,10 @@
}
}
// Disable all form controls to prevent resubmission except for our search input
// Note that disabled form inputs will not be enabled via JavaScript again
$form.find(':input:not(#search):not(:disabled)').prop('disabled', true);
icinga.loader.loadUrl(url, $target, data, method);
return false;