Skip to content
Snippets Groups Projects
Commit 408c3c98 authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[!!!][TASK] Remove jQuery from `@typo3/backend/document-save-actions` module

The JavaScript module `@typo3/backend/document-save-actions` is used in
FormEngine and Scheduler context mainly to disable the submit button in
the according forms, where also a spinner is rendered within the button
to visualize a running action.

Over the time, the module took over some tasks that logically belong to
FormEngine, which lead to slimming down the module. In a further effort,
jQuery has been removed from said module, leading to a change in
behavior how the callback chain can be aborted.

Native JavaScript events cannot get asked whether event propagation has
been stopped, making changes in the callbacks necessary. All callbacks
registered via `addPreSubmitCallback()` now need to return a boolean
value.

Resolves: #101822
Releases: main
Change-Id: Ida17480f81d07f8cda43d29455ccf5d0b9ccfff2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80819


Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 92d0b674
Branches
Tags
No related merge requests found
Showing with 161 additions and 98 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment