From c29257f732ce23346e3f85d9a7ee99bff728ca84 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Mon, 20 May 2013 10:04:03 +0300 Subject: [PATCH] [ticket/11556] Load apply_onkeypress_event() correctly PHPBB3-11556 --- phpBB/styles/prosilver/template/forum_fn.js | 2 ++ phpBB/styles/prosilver/template/posting_editor.html | 6 ------ phpBB/styles/prosilver/template/ucp_register.html | 5 ----- 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 @@ - -

{ERROR}

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(); } - - - onload_functions.push(apply_onkeypress_event); - - // ]]>