[BUGFIX] Install tool: Trigger ext scan on ext open 44/53744/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 20 Aug 2017 11:49:29 +0000 (13:49 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 21 Aug 2017 10:14:26 +0000 (12:14 +0200)
In the extension scanner, if opening a single extension view
for the first time, the scanner is correctly triggered again.

Change-Id: I72d18a17d735d67109135205684f25c75dc77711
Resolves: #82140
Related: #76084
Releases: master
Reviewed-on: https://review.typo3.org/53744
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/install/Resources/Public/JavaScript/Modules/ExtensionScanner.js

index 4f6c591..4f23b70 100644 (file)
@@ -19,9 +19,9 @@ define(['jquery', 'TYPO3/CMS/Install/FlashMessage', 'TYPO3/CMS/Install/Severity'
 
        return {
                listOfAffectedRestFileHashes: [],
-               selectorExtensionContainer: '.gridder-show .t3js-extensionScanner-extension',
-               selectorNumberOfFiles: '.gridder-show .t3js-extensionScanner-number-of-files',
-               selectorScanSingleTrigger: '.gridder-show .t3js-extensionScanner-scan-single',
+               selectorExtensionContainer: '.t3js-extensionScanner-extension',
+               selectorNumberOfFiles: '.t3js-extensionScanner-number-of-files',
+               selectorScanSingleTrigger: '.t3js-extensionScanner-scan-single',
 
                initialize: function() {
                        var self = this;
@@ -34,7 +34,7 @@ define(['jquery', 'TYPO3/CMS/Install/FlashMessage', 'TYPO3/CMS/Install/Severity'
                        });
                        $(document).on('show.bs.collapse', this.selectorExtensionContainer, function(e) {
                                // Trigger extension scan on opening a extension collapsible
-                               if ($(e.target).closest('').data('hasRun') !== 'true') {
+                               if ($(e.target).closest(self.selectorExtensionContainer).data('hasRun') !== 'true') {
                                        $(this).find(self.selectorScanSingleTrigger).click();
                                }
                        });