[BUGFIX] SplitButtons: Abort click event if requested 32/54032/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Thu, 7 Sep 2017 18:13:17 +0000 (20:13 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 8 Sep 2017 16:14:14 +0000 (18:14 +0200)
commitc50931a5d0d521aab61d0a18abc77a4e1030a111
treec2a7d63694295912473ae91b1e8d6c51ecfd8b1b
parentf345bbe4257ecf0e2314f3ec3d65b79f1a7fe35c
[BUGFIX] SplitButtons: Abort click event if requested

If any callback is registered by `SplitButtons.addPreSubmitCallback()` and
requests to stop the event by `stopPropagation()`, the event must be
aborted and not only possibly stacked events.
Additionally, the `preventExec` flag gets reset.

Resolves: #82355
Related: #77942
Releases: master, 8.7, 7.6
Change-Id: Ib8478ef4c51915365c804c1c408b3fc16a13da0b
Reviewed-on: https://review.typo3.org/54032
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Resources/Public/JavaScript/SplitButtons.js