[TASK] Pass dataset to context menu actions and drop jQuery in them
The context menu module now passes the dataset bound to a context menu item to the respective callback action, excluding `callback-action` and `callback-module`. The context menu items bound to `this` in the respective callback actions are not required anymore, allowing to ditch jQuery in the `context-menu-actions` modules. For this reason, binding the context menu item to `this` is deprecated, usages will trigger a deprecation log entry in the browser's console. Resolves: #98168 Releases: main Change-Id: Ibaf3c5b343323dcd29bd9aae3212ebcee91d83ef Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75491 Tested-by:Benjamin Franzke <bfr@qbus.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Benjamin Franzke <bfr@qbus.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de>
Showing
- Build/Sources/TypeScript/backend/context-menu-actions.ts 39 additions, 106 deletionsBuild/Sources/TypeScript/backend/context-menu-actions.ts
- Build/Sources/TypeScript/backend/context-menu.ts 25 additions, 10 deletionsBuild/Sources/TypeScript/backend/context-menu.ts
- Build/Sources/TypeScript/filelist/context-menu-actions.ts 30 additions, 34 deletionsBuild/Sources/TypeScript/filelist/context-menu-actions.ts
- Build/Sources/TypeScript/impexp/context-menu-actions.ts 4 additions, 6 deletionsBuild/Sources/TypeScript/impexp/context-menu-actions.ts
- typo3/sysext/backend/Resources/Public/JavaScript/context-menu-actions.js 1 addition, 1 deletion...ckend/Resources/Public/JavaScript/context-menu-actions.js
- typo3/sysext/backend/Resources/Public/JavaScript/context-menu.js 1 addition, 1 deletion...ysext/backend/Resources/Public/JavaScript/context-menu.js
- typo3/sysext/core/Documentation/Changelog/12.0/Deprecation-98168-BindingContextMenuItemToThis.rst 54 additions, 0 deletions...g/12.0/Deprecation-98168-BindingContextMenuItemToThis.rst
- typo3/sysext/filelist/Resources/Public/JavaScript/context-menu-actions.js 1 addition, 1 deletion...elist/Resources/Public/JavaScript/context-menu-actions.js
- typo3/sysext/impexp/Resources/Public/JavaScript/context-menu-actions.js 1 addition, 1 deletion...mpexp/Resources/Public/JavaScript/context-menu-actions.js
Please register or sign in to comment