[BUGFIX] Adopt IRRE class toggle for hide/unhide 96/35396/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sat, 13 Dec 2014 18:23:14 +0000 (19:23 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 14 Dec 2014 16:49:15 +0000 (17:49 +0100)
Clicking hide/unhide in IRRE elements doesn't change the UI anymore
because the icon class changed but not the JS.

Resolves: #63833
Releases: master
Change-Id: I2775708158d03d0fa931a89ee60d269a001692a8
Reviewed-on: http://review.typo3.org/35396
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js

index 907418b..69e88ff 100644 (file)
@@ -875,13 +875,13 @@ var inline = {
                }
 
                if ($icon.length) {
-                       if ($icon.hasClass('t3-icon-edit-hide')) {
-                               $icon.removeClass('t3-icon-edit-hide');
-                               $icon.addClass('t3-icon-edit-unhide');
+                       if ($icon.hasClass('fa-toggle-on')) {
+                               $icon.removeClass('fa-toggle-on');
+                               $icon.addClass('fa-toggle-off');
                                $container.addClass('t3-form-field-container-inline-hidden');
                        } else {
-                               $icon.removeClass('t3-icon-edit-unhide');
-                               $icon.addClass('t3-icon-edit-hide');
+                               $icon.removeClass('fa-toggle-off');
+                               $icon.addClass('fa-toggle-on');
                                $container.removeClass('t3-form-field-container-inline-hidden');
                        }
                }