aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/login_body.html
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-07-20 23:59:04 +0200
committerIgor Wiedler <igor@wiedler.ch>2012-07-21 00:12:45 +0200
commit61f7f1b8edf5cf0efb1b33495e2069a151d6baa9 (patch)
tree029791f5c6c84f1fed6a24c220840f7bc4346740 /phpBB/styles/prosilver/template/login_body.html
parentca43a8947a67642f6d1f211f1f5e030b2526ebe2 (diff)
downloadforums-61f7f1b8edf5cf0efb1b33495e2069a151d6baa9.tar
forums-61f7f1b8edf5cf0efb1b33495e2069a151d6baa9.tar.gz
forums-61f7f1b8edf5cf0efb1b33495e2069a151d6baa9.tar.bz2
forums-61f7f1b8edf5cf0efb1b33495e2069a151d6baa9.tar.xz
forums-61f7f1b8edf5cf0efb1b33495e2069a151d6baa9.zip
[ticket/11008] Change onunload_functions to not use eval()
PHPBB3-11008
Diffstat (limited to 'phpBB/styles/prosilver/template/login_body.html')
-rw-r--r--phpBB/styles/prosilver/template/login_body.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/login_body.html b/phpBB/styles/prosilver/template/login_body.html
index d8b9b01779..90d8191676 100644
--- a/phpBB/styles/prosilver/template/login_body.html
+++ b/phpBB/styles/prosilver/template/login_body.html
@@ -2,7 +2,9 @@
<script type="text/javascript">
// <![CDATA[
- onload_functions.push('document.getElementById("<!-- IF S_ADMIN_AUTH -->{PASSWORD_CREDENTIAL}<!-- ELSE -->{USERNAME_CREDENTIAL}<!-- ENDIF -->").focus();');
+ onload_functions.push(function () {
+ document.getElementById("<!-- IF S_ADMIN_AUTH -->{PASSWORD_CREDENTIAL}<!-- ELSE -->{USERNAME_CREDENTIAL}<!-- ENDIF -->").focus();
+ });
// ]]>
</script>