From 1bfbce98ac15d8aef13c02bb4b10d0fbbbbd5dab Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 28 May 2015 09:44:01 +0200 Subject: [PATCH] Disable all form controls on submit to prevent resubmission fixes #7151 --- 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 cc927feb6..84354c960 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -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;