aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-05-20 10:04:03 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-05-20 10:04:03 +0300
commitc29257f732ce23346e3f85d9a7ee99bff728ca84 (patch)
treef654b0e84280bbaa327c62b0c9f2cccf328aeed8 /phpBB
parenta2a6357fd5acd2d3cd647601dad08dc08341ad93 (diff)
downloadforums-c29257f732ce23346e3f85d9a7ee99bff728ca84.tar
forums-c29257f732ce23346e3f85d9a7ee99bff728ca84.tar.gz
forums-c29257f732ce23346e3f85d9a7ee99bff728ca84.tar.bz2
forums-c29257f732ce23346e3f85d9a7ee99bff728ca84.tar.xz
forums-c29257f732ce23346e3f85d9a7ee99bff728ca84.zip
[ticket/11556] Load apply_onkeypress_event() correctly
PHPBB3-11556
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js2
-rw-r--r--phpBB/styles/prosilver/template/posting_editor.html6
-rw-r--r--phpBB/styles/prosilver/template/ucp_register.html5
3 files changed, 2 insertions, 11 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js
index 781c2ed31f..ac8861d4a8 100644
--- a/phpBB/styles/prosilver/template/forum_fn.js
+++ b/phpBB/styles/prosilver/template/forum_fn.js
@@ -383,3 +383,5 @@ function apply_onkeypress_event() {
return true;
});
}
+
+jQuery(document).ready(apply_onkeypress_event);
diff --git a/phpBB/styles/prosilver/template/posting_editor.html b/phpBB/styles/prosilver/template/posting_editor.html
index 8156968098..83dc6111dd 100644
--- a/phpBB/styles/prosilver/template/posting_editor.html
+++ b/phpBB/styles/prosilver/template/posting_editor.html
@@ -1,9 +1,3 @@
-<script type="text/javascript">
-// <![CDATA[
- onload_functions.push(apply_onkeypress_event);
-// ]]>
-</script>
-
<fieldset class="fields1">
<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->
diff --git a/phpBB/styles/prosilver/template/ucp_register.html b/phpBB/styles/prosilver/template/ucp_register.html
index db95e5ba13..779c1fc2a3 100644
--- a/phpBB/styles/prosilver/template/ucp_register.html
+++ b/phpBB/styles/prosilver/template/ucp_register.html
@@ -10,11 +10,6 @@
document.forms['register'].change_lang.value = lang_iso;
document.forms['register'].submit.click();
}
-
- <!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_REFRESH -->
- onload_functions.push(apply_onkeypress_event);
- <!-- ENDIF -->
-
// ]]>
</script>