WSForm test/T5851 "Add class to form after it has been submitted"

From CODECS Dev
Draft/629826

WSForm test/T5851 "Add class to form after it has been submitted"

https://tasks.wikibase.nl/T5851 => submit-form-ajax

When using Ajax (javascript) to submit a form, users will stay on the page and javaScript will handle the posting of the form.

When a user clicks the submit button, a class "disabled" will be added to the submit button. It is removed again after submit is done or when the form does not pass validation.

When a user clicks the submit button, a class "wsform-submitting" is added to the form. It is removed and replaced by "wsform-submitted" when the submit has been successful or only removed when form does not pass validation.


Page: Draft/WSForm/94949