1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-30 19:49:54 +02:00

[ticket/11008] Change onunload_functions to not use eval()

PHPBB3-11008
This commit is contained in:
Igor Wiedler
2012-07-20 23:59:04 +02:00
parent ca43a8947a
commit 61f7f1b8ed
6 changed files with 12 additions and 8 deletions

View File

@@ -2,7 +2,9 @@
<script type="text/javascript">
// <![CDATA[
onload_functions.push('document.getElementById("keywords").focus();');
onload_functions.push(function () {
document.getElementById("keywords").focus();
});
// ]]>
</script>