From a148fb66315e7b081914fc58057d1f754d4c9bb9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 22 Nov 2017 15:52:17 +0100 Subject: [PATCH] Fixed method call --- wcfsetup/install/files/acp/templates/trophyAdd.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/templates/trophyAdd.tpl b/wcfsetup/install/files/acp/templates/trophyAdd.tpl index af65a640f4..2e2d16dda5 100644 --- a/wcfsetup/install/files/acp/templates/trophyAdd.tpl +++ b/wcfsetup/install/files/acp/templates/trophyAdd.tpl @@ -30,7 +30,7 @@ elBySel('input[name=awardAutomatically]').addEventListener('change', function () { var awardAutomatically = elBySel('input[name=awardAutomatically]').checked; - elBySelAll('.conditionSection', null, (awardAutomatically ? 'elShow' : 'elHide')) + elBySelAll('.conditionSection', null, window[(awardAutomatically ? 'elShow' : 'elHide')]); }); BadgeHandler.init(); -- 2.20.1