[!!!][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:Benjamin Franzke <ben@bnf.dev> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Benjamin Franzke <ben@bnf.dev> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de>
Showing
- Build/Sources/TypeScript/backend/document-save-actions.ts 81 additions, 56 deletionsBuild/Sources/TypeScript/backend/document-save-actions.ts
- Build/Sources/TypeScript/backend/form-engine-validation.ts 20 additions, 18 deletionsBuild/Sources/TypeScript/backend/form-engine-validation.ts
- Build/Sources/TypeScript/backend/form-engine.ts 6 additions, 17 deletionsBuild/Sources/TypeScript/backend/form-engine.ts
- Build/Sources/TypeScript/scheduler/scheduler.ts 1 addition, 3 deletionsBuild/Sources/TypeScript/scheduler/scheduler.ts
- typo3/sysext/backend/Resources/Public/JavaScript/document-save-actions.js 1 addition, 1 deletion...kend/Resources/Public/JavaScript/document-save-actions.js
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine-validation.js 1 addition, 1 deletion...end/Resources/Public/JavaScript/form-engine-validation.js
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine.js 1 addition, 1 deletion...sysext/backend/Resources/Public/JavaScript/form-engine.js
- typo3/sysext/core/Documentation/Changelog/13.0/Breaking-101822-ChangeCallbackInterruptionInTypo3backenddocument-save-actions.rst 49 additions, 0 deletions...llbackInterruptionInTypo3backenddocument-save-actions.rst
- typo3/sysext/scheduler/Resources/Public/JavaScript/scheduler.js 1 addition, 1 deletion...sysext/scheduler/Resources/Public/JavaScript/scheduler.js
Please register or sign in to comment