From 33946e2a065a3ef8742eade9f45aa735092e0a47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Fri, 3 Aug 2018 18:11:24 +0200 Subject: [PATCH] Use internal functions to hide/show an element See #2635 --- wcfsetup/install/files/acp/templates/userTrophyAdd.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/userTrophyAdd.tpl b/wcfsetup/install/files/acp/templates/userTrophyAdd.tpl index b94f2a1758..afa26db014 100644 --- a/wcfsetup/install/files/acp/templates/userTrophyAdd.tpl +++ b/wcfsetup/install/files/acp/templates/userTrophyAdd.tpl @@ -10,12 +10,12 @@ elBySel('input[name=useCustomDescription]').addEventListener('click', function () { if (elBySel('input[name=useCustomDescription]').checked) { - elById('userTrophyDescriptionDL').style.display = 'block'; - elById('trophyUseHtmlDL').style.display = 'block'; + elShow(elById('userTrophyDescriptionDL')); + elShow(elById('trophyUseHtmlDL')); } else { - elById('userTrophyDescriptionDL').style.display = 'none'; - elById('trophyUseHtmlDL').style.display = 'none'; + elHide(elById('userTrophyDescriptionDL')); + elHide(elById('trophyUseHtmlDL')); } }); }); -- 2.20.1