From 70f6ecdc61e7dac0fffad016d6b30a9c829b9596 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 14 Nov 2024 16:14:54 +0100 Subject: [PATCH] prevent ajax submission --- javascript/cms-actions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/javascript/cms-actions.js b/javascript/cms-actions.js index f64e0e5..afdeb48 100644 --- a/javascript/cms-actions.js +++ b/javascript/cms-actions.js @@ -72,6 +72,8 @@ if (this.hasClass("confirm")) { var confirmed = confirm($(this).data("message")); if (!confirmed) { + // Prevent submission + e.preventDefault(); return; } }