[TASK] Use GlobalEventHandler and ActionDispatcher instead of inline JS
This change aims to reduce the amount of inline JavaScript by removing `onchange` or `onclick` events and dynamically created JavaScript code/settings. * adjusts invocations of top.TYPO3.InfoWindow.showItem * adjusts low-level inline `onchange` and `onclick` events Both JavaScript modules `TYPO3/CMS/Backend/GlobalEventHandler` and `TYPO3/CMS/Backend/ActionDispatcher` are required to actually handle these new triggers and correpsonding events - that's why they are loaded in `ModuleTemplate` and deprecated `DocumentTemplate`. Resolves: #91117 Releases: master Change-Id: Ie7012445d09c3aee253548cb3057c8e9e4b86809 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64242 Tested-by:Josef Glatz <josefglatz@gmail.com> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
TYPO3com <noreply@typo3.com> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Reviewed-by:
Josef Glatz <josefglatz@gmail.com> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org>
Showing
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/ActionDispatcher.ts 16 additions, 8 deletions...t/backend/Resources/Public/TypeScript/ActionDispatcher.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/GlobalEventHandler.ts 13 additions, 11 deletions...backend/Resources/Public/TypeScript/GlobalEventHandler.ts
- typo3/sysext/backend/Classes/Clipboard/Clipboard.php 8 additions, 2 deletionstypo3/sysext/backend/Classes/Clipboard/Clipboard.php
- typo3/sysext/backend/Classes/Controller/Wizard/TableController.php 1 addition, 2 deletions...ext/backend/Classes/Controller/Wizard/TableController.php
- typo3/sysext/backend/Classes/Template/DocumentTemplate.php 2 additions, 0 deletionstypo3/sysext/backend/Classes/Template/DocumentTemplate.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 44 additions, 20 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Classes/View/PageLayoutView.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/View/PageLayoutView.php
- typo3/sysext/backend/Resources/Private/Partials/Clipboard/TabContent.html 4 additions, 2 deletions...kend/Resources/Private/Partials/Clipboard/TabContent.html
- typo3/sysext/backend/Resources/Private/Partials/PageLayout/LanguageColumns.html 1 addition, 1 deletion...esources/Private/Partials/PageLayout/LanguageColumns.html
- typo3/sysext/backend/Resources/Public/JavaScript/ActionDispatcher.js 1 addition, 1 deletion...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/core/Classes/Database/QueryView.php 6 additions, 3 deletionstypo3/sysext/core/Classes/Database/QueryView.php
- typo3/sysext/core/Classes/Utility/GeneralUtility.php 11 additions, 0 deletionstypo3/sysext/core/Classes/Utility/GeneralUtility.php
- typo3/sysext/core/Documentation/Changelog/10.4.x/Important-91117-UseGlobalEventHandlerAndActionDispatcherInsteadOfInlineJS.rst 76 additions, 0 deletions...lobalEventHandlerAndActionDispatcherInsteadOfInlineJS.rst
- typo3/sysext/fluid/Classes/ViewHelpers/Be/TableListViewHelper.php 1 addition, 0 deletions...sext/fluid/Classes/ViewHelpers/Be/TableListViewHelper.php
- typo3/sysext/info/Classes/Controller/InfoPageTyposcriptConfigController.php 1 addition, 2 deletions...Classes/Controller/InfoPageTyposcriptConfigController.php
- typo3/sysext/recordlist/Classes/Controller/RecordListController.php 1 addition, 1 deletion...xt/recordlist/Classes/Controller/RecordListController.php
- typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php 18 additions, 8 deletions...sext/recordlist/Classes/RecordList/DatabaseRecordList.php
Please register or sign in to comment