From: Joshua Rüsweg Date: Sat, 4 Aug 2018 10:06:56 +0000 (+0200) Subject: Use internal functions to hide/show an element X-Git-Tag: 5.2.0_Alpha_1~364^2~101^2~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a1c4d9c2c8736c5641a435a30ab2b996b134709;p=GitHub%2FWoltLab%2FWCF.git Use internal functions to hide/show an element See #2635 --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js index 87154914bb..274e65ce64 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js @@ -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)); }, /**