[BUGFIX] Use stopPropagation() to prevent event bubbling 19/44419/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 30 Oct 2015 17:09:30 +0000 (18:09 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 30 Oct 2015 17:52:04 +0000 (18:52 +0100)
Resolves: #71182
Related: #71149
Releases: master
Change-Id: I7c4471d66fb1e675d01ff36e9a616db7e9cf81ef
Reviewed-on: https://review.typo3.org/44419
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/backend/Classes/Form/Container/FlexFormContainerContainer.php
typo3/sysext/backend/Resources/Public/JavaScript/FormEngineFlexForm.js

index 3ead01c..f344fd0 100644 (file)
@@ -68,8 +68,8 @@ class FlexFormContainerContainer extends AbstractContainer
         $moveAndDeleteContent = array();
         $userHasAccessToDefaultLanguage = $this->getBackendUserAuthentication()->checkLanguageAccess(0);
         if ($userHasAccessToDefaultLanguage) {
-            $moveAndDeleteContent[] = '<span class="btn btn-default"><span title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:sortable.dragmove', true) . '" class="t3js-sortable-handle">' . $iconFactory->getIcon('actions-move-move', Icon::SIZE_SMALL)->render() . '</span></span>';
-            $moveAndDeleteContent[] = '<span class="btn btn-default"><span title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:delete', true) . '" class="t3js-delete">' . $iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL)->render() . '</span></span>';
+            $moveAndDeleteContent[] = '<span class="btn btn-default t3js-sortable-handle"><span title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:sortable.dragmove', true) . '">' . $iconFactory->getIcon('actions-move-move', Icon::SIZE_SMALL)->render() . '</span></span>';
+            $moveAndDeleteContent[] = '<span class="btn btn-default t3js-delete"><span title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:delete', true) . '">' . $iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL)->render() . '</span></span>';
         }
 
         $options = $this->data;
index a8035aa..47cf87f 100644 (file)
@@ -102,6 +102,8 @@ define(['jquery', 'TYPO3/CMS/Backend/FormEngine'], function ($) {
                                        evt.preventDefault();
                                        var $sectionEl = $(this).closest(opts.sectionSelector);
                                        me.toggleSection($sectionEl);
+                               }).on('click', opts.sectionToggleButtonSelector + ' .form-irre-header-control', function(evt) {
+                                       evt.stopPropagation();
                                });
                        }