[BUGFIX] Show and hide arrow correctly in page tree 37/55437/2
authorManuel Selbach <manuel_selbach@yahoo.de>
Tue, 23 Jan 2018 14:22:56 +0000 (15:22 +0100)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Thu, 25 Jan 2018 10:54:08 +0000 (11:54 +0100)
This will set the attribute "visibility" to the correct value "visible"
or "hidden" instead of "collapse" so the arrow icon of the page tree
acts accordingly in all browsers.

Resolves: #83585
Releases: master
Change-Id: I17b8705ed9f7e0f0ac966294572ede5c9a151857
Reviewed-on: https://review.typo3.org/55437
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js

index da64e03..e6f6fb2 100644 (file)
@@ -912,7 +912,7 @@ define(
        * @returns {String}
        */
       getToggleVisibility: function (node) {
-        return node.hasChildren ? 'visible' : 'collapse';
+        return node.hasChildren ? 'visible' : 'hidden';
       },
 
       /**