Use internal functions to hide/show an element
authorJoshua Rüsweg <josh@bastelstu.be>
Sat, 4 Aug 2018 10:06:56 +0000 (12:06 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Sat, 4 Aug 2018 10:06:56 +0000 (12:06 +0200)
See #2635

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js

index 87154914bb1baa1ba4c473ca153bc55705e10600..274e65ce64e84e19809608957f9482f06bc6fcac 100644 (file)
@@ -132,9 +132,7 @@ define(
                        _enableMobileView: function(element) {
                                var messageFooterGroup = element.parentElement.parentElement.parentElement;
                                
-                               var mobileReaction = elBySel('.mobileReactButton', messageFooterGroup);
-                               
-                               mobileReaction.style.display = '';
+                               elShow(elBySel('.mobileReactButton', messageFooterGroup));
                        },
                        
                        /**
@@ -145,9 +143,7 @@ define(
                        _disableMobileView: function(element) {
                                var messageFooterGroup = element.parentElement.parentElement.parentElement;
                                
-                               var mobileReaction = elBySel('.mobileReactButton', messageFooterGroup);
-                               
-                               mobileReaction.style.display = 'none';
+                               elHide(elBySel('.mobileReactButton', messageFooterGroup));
                        },
                        
                        /**