Skip to content
Snippets Groups Projects
Commit 82b2f671 authored by Oliver Hader's avatar Oliver Hader Committed by Stefan Bürk
Browse files

[TASK] Allow global event handlers on click

The backend related global-event-handler is a helper
to especially submit POST forms on various DOM elements.
It supersedes "onClick" events by having a watcher defined
by data attributes.
The patch extends given solution to also act on other
elements, especially the "<a .." tag.
This will be used by the upcoming backend TypoScript
Object browser and in general allows to send POST
requests instead of GET requests on many elements.
The JavaScript implementation has been prepared a while
ago already, but missed a use-case up until now.

Change-Id: I6604fd866543f94addbb9909fd41fb2ba3355bf5
Resolves: #97795
Related: #91052
Releases: main
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74963


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 89e8e0c6
Branches
Tags
No related merge requests found
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