[TASK] Bring back the toggle button in install tool 10/45110/7
authorGianluigi Martino <gmartino27@gmail.com>
Thu, 3 Dec 2015 14:47:00 +0000 (15:47 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 4 Dec 2015 13:39:15 +0000 (14:39 +0100)
This patch brings back the toggle button for all configuration in install tool

Resolves: #71387
Releases: master
Change-Id: I827f3389c564857e76f215f6e9c6d22cddb2728f
Reviewed-on: https://review.typo3.org/45110
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/install/Resources/Private/Templates/Action/Tool/AllConfiguration.html
typo3/sysext/install/Resources/Public/JavaScript/Install.js

index 4d23814..23f938a 100644 (file)
@@ -65,6 +65,7 @@
                                        <div id="fixed-footer">
                                                <div class="footer-innerWrap">
                                                        <f:render partial="Action/Common/SubmitButton" arguments="{name:'write', text:'Write configuration', className:'btn-save'}"/>
+                                                       <span class="btn btn-default t3js-all-configuration-toggle">Toogle All</span>
                                                </div>
                                        </div>
                                </div>
index e1a94ff..c7d7cfa 100644 (file)
@@ -534,6 +534,12 @@ $(function() {
                }
        });
 
+       $(document).on('click', '.t3js-all-configuration-toggle', function() {
+               var $panels = $('.panel-collapse', '#allConfiguration');
+               var action = ($panels.eq(0).hasClass('in')) ? 'hide' : 'show';
+               $panels.collapse(action);
+       });
+
        // Simple password strength indicator
        $('.t3-install-form-password-strength').on('keyup', function() {
                var value = $(this).val();