Skip to content
Snippets Groups Projects
Commit 186f0982 authored by Andreas Kienast's avatar Andreas Kienast Committed by Markus Klein
Browse files

[BUGFIX] SplitButtons.js must take CMD of BaseScriptClass into consideration

Modules may use the CMD attribute of BaseScriptClass to handle the save
actions. Adjust the selectors of SplitButtons.js to take these links
into consideration.

Resolves: #70562
Related: #70531
Releases: master
Change-Id: I06bce96e894080ca4a9bd36a761be588ec46e56c
Reviewed-on: http://review.typo3.org/43960


Reviewed-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Tested-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
parent 57305182
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,13 @@ define('TYPO3/CMS/Backend/SplitButtons', ['jquery'], function($) {
* Initializes the save handling
*/
SplitButtons.initializeSaveHandling = function() {
$(document).on('click', 'button[name^="_save"], a[data-name^="_save"]', function(e) {
var elements = [
'button[name^="_save"]',
'a[data-name^="_save"]',
'button[name="CMD"][value^="save"]',
'a[data-name="CMD"][data-value^="save"]'
].join(',');
$(document).on('click', elements, function(e) {
var $me = $(this),
$form = $me.closest('form'),
name = $me.data('name') || this.name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment