[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:TYPO3com <noreply@typo3.com> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
Josef Glatz <josefglatz@gmail.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Josef Glatz <josefglatz@gmail.com> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/ActionDispatcher.ts 94 additions, 0 deletions...t/backend/Resources/Public/TypeScript/ActionDispatcher.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/GlobalEventHandler.ts 12 additions, 0 deletions...backend/Resources/Public/TypeScript/GlobalEventHandler.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/InfoWindow.ts 4 additions, 0 deletions...eScript/backend/Resources/Public/TypeScript/InfoWindow.ts
- Build/Sources/TypeScript/beuser/Resources/Public/TypeScript/Permissions.ts 8 additions, 1 deletion...eScript/beuser/Resources/Public/TypeScript/Permissions.ts
- typo3/sysext/backend/Classes/Template/ModuleTemplate.php 2 additions, 1 deletiontypo3/sysext/backend/Classes/Template/ModuleTemplate.php
- typo3/sysext/backend/Resources/Public/JavaScript/ActionDispatcher.js 13 additions, 0 deletions...t/backend/Resources/Public/JavaScript/ActionDispatcher.js
- typo3/sysext/backend/Resources/Public/JavaScript/GlobalEventHandler.js 1 addition, 1 deletion...backend/Resources/Public/JavaScript/GlobalEventHandler.js
- typo3/sysext/backend/Resources/Public/JavaScript/InfoWindow.js 1 addition, 1 deletion.../sysext/backend/Resources/Public/JavaScript/InfoWindow.js
- typo3/sysext/beuser/Classes/Controller/PermissionController.php 1 addition, 1 deletion...sysext/beuser/Classes/Controller/PermissionController.php
- typo3/sysext/beuser/Resources/Private/Layouts/Default.html 3 additions, 1 deletiontypo3/sysext/beuser/Resources/Private/Layouts/Default.html
- typo3/sysext/beuser/Resources/Private/Partials/BackendUser/IndexListRow.html 3 additions, 1 deletion.../Resources/Private/Partials/BackendUser/IndexListRow.html
- typo3/sysext/beuser/Resources/Private/Partials/BackendUser/OnlineListRow.html 1 addition, 1 deletion...Resources/Private/Partials/BackendUser/OnlineListRow.html
- typo3/sysext/beuser/Resources/Private/Partials/BackendUserGroup/IndexListRow.html 3 additions, 1 deletion...urces/Private/Partials/BackendUserGroup/IndexListRow.html
- typo3/sysext/beuser/Resources/Private/Templates/Permission/Edit.html 15 additions, 15 deletions...t/beuser/Resources/Private/Templates/Permission/Edit.html
- typo3/sysext/beuser/Resources/Private/Templates/Permission/Index.html 2 additions, 2 deletions.../beuser/Resources/Private/Templates/Permission/Index.html
- typo3/sysext/beuser/Resources/Public/JavaScript/Permissions.js 1 addition, 1 deletion.../sysext/beuser/Resources/Public/JavaScript/Permissions.js
Please register or sign in to comment