[BUGFIX] Install tool: Configure settings toggle all button 45/53745/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 20 Aug 2017 12:08:13 +0000 (14:08 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 21 Aug 2017 09:36:14 +0000 (11:36 +0200)
Fix a JS selector to correctly toggle on "Toggle All" again.

Change-Id: Ie21c8c41fb9ba1aba4eedb197603a8c2a7111477
Resolves: #82141
Related: #76084
Releases: master
Reviewed-on: https://review.typo3.org/53745
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/install/Resources/Public/JavaScript/Modules/LocalConfiguration.js

index 8426368..790ea24 100644 (file)
@@ -18,7 +18,7 @@ define(['jquery', 'TYPO3/CMS/Install/FlashMessage', 'TYPO3/CMS/Install/ProgressB
        'use strict';
 
        return {
-               selectorToggleAllTrigger: '.gridder-show .t3js-localConfiguration-toggleAll',
+               selectorToggleAllTrigger: '.t3js-localConfiguration-toggleAll',
                selectorWriteTrigger: '.t3js-localConfiguration-write',
                selectorSearchTrigger: '.t3js-localConfiguration-search',
                selectorWriteToken: '#t3js-localConfiguration-write-token',
@@ -33,7 +33,7 @@ define(['jquery', 'TYPO3/CMS/Install/FlashMessage', 'TYPO3/CMS/Install/ProgressB
 
                        // Expand / collapse "Toggle all" button
                        $(document).on('click', this.selectorToggleAllTrigger, function() {
-                               var $panels = $('.panel-collapse', '.gridder-show .t3js-localConfiguration');
+                               var $panels = $('.t3js-localConfiguration .panel-collapse');
                                var action = ($panels.eq(0).hasClass('in')) ? 'hide' : 'show';
                                $panels.collapse(action);
                        });