Skip to content
Snippets Groups Projects
Commit cb9863f5 authored by Oliver Hader's avatar Oliver Hader Committed by Benni Mack
Browse files

[TASK] Reduce inline JavaScript in ext:beuser

This change aims to reduce the amount of inline JavaScript by
removing `onchange` or `onclick` events and dynamically created
JavaScript code/settings. There are still a couple of aspects
that need to be solved in a general way - e.g. assigning global
language labels (`TYPO3.lang`) or settings (`TYPO3.settings`).

* extracts inline JavaScript from controllers & templates
* GlobalEventHandler is extended to deal with custom scenarios
  that acutally would trigger a browser navigate events (e.g.
  changing a select drop-down leads to a document refresh)
* ActionDispatcher is introduced to listen and delegate
  events to global TYPO3 modules in `top` window scope

Resolves: #91015
Releases: master
Change-Id: I67bf70bba1890c0ef966a08d96823ad91b1d4167
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64130


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarJosef Glatz <josefglatz@gmail.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarJosef Glatz <josefglatz@gmail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 16d20d43
Branches
Tags
No related merge requests found
Showing
with 164 additions and 27 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