|
From: Mercurial C. <th...@in...> - 2026-05-18 03:50:33
|
# HG changeset patch
# User John Rouillard <ro...@ie...>
# Date 1779071037 14400
# Sun May 17 22:23:57 2026 -0400
# Node ID 3913906eac2ce6b8142d83ba49cdd5a3052c7668
# Parent 55937ea8655eac3f6ad002873019725cc2d29e79
bug: issue2551377 - Disabled submit button UI issues. Fixed
Add code to allow submit button to complete submission after 5 second
delay. This should be more than enough time for the page to refresh
under normal circumstances.
diff -r 55937ea8655e -r 3913906eac2c CHANGES.txt
--- a/CHANGES.txt Sun May 17 20:30:54 2026 -0400
+++ b/CHANGES.txt Sun May 17 22:23:57 2026 -0400
@@ -117,6 +117,12 @@
classic template more responsive. (John Rouillard)
- jinja2 template dependencies updated: bootstrap 4.4.1 -> 4.6.2.
(John Rouillard)
+- issue2551377 - Disabled submit button UI issues. When the submit
+ button is clicked (triggering submit_once) but client side
+ validation blocks the submission, the submit button no longer
+ submits the form. Clicking it says the form has been submitted
+ please wait. This change allows the submit button to submit the form
+ again after 5 seconds. (John Rouillard)
Features:
diff -r 55937ea8655e -r 3913906eac2c roundup/cgi/templating.py
--- a/roundup/cgi/templating.py Sun May 17 20:30:54 2026 -0400
+++ b/roundup/cgi/templating.py Sun May 17 22:23:57 2026 -0400
@@ -3447,6 +3447,9 @@
alert("Your request is being processed.\\nPlease be patient.");
return false;
}
+
+ window.setTimeout("submitted = false;", 5000)
+
submitted = true;
return true;
}
|