Fixed method call
authorAlexander Ebert <ebert@woltlab.com>
Wed, 22 Nov 2017 14:52:17 +0000 (15:52 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 22 Nov 2017 14:52:17 +0000 (15:52 +0100)
wcfsetup/install/files/acp/templates/trophyAdd.tpl

index af65a640f48e13242e72e59eb22157d340bd3752..2e2d16dda54a3bed5414b318cab40879c6e7cca3 100644 (file)
@@ -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();