Non-ajax code lacks double submission prevention

Created on 10 September 2025, about 2 months ago

Problem/Motivation

I don't quite understand why there needs to be 2 copies of most of the JavaScript for this module, one for non-AJAX and one for AJAX enabled forms, but since there is, there's a little inconsistency between the two.

In particular, the AJAX version has a snippet of code that stops double submission of the actual form, whereas the non-AJAX version does not.

In my testing I was seeing that the browser really was being asked to submit the form twice, but that something was preventing that. Not entirely sure what was, but we could easily bring the fix from the AJAX version into the non-AJAX version.

Steps to reproduce

Look at the code.

Proposed resolution

Copy the code.

Remaining tasks

Prepare and review a MR.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom steven jones

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024