[ticket/11556] Load apply_onkeypress_event() correctly

PHPBB3-11556
This commit is contained in:
Vjacheslav Trushkin 2013-05-20 10:04:03 +03:00
parent a2a6357fd5
commit c29257f732
3 changed files with 2 additions and 11 deletions

View file

@ -383,3 +383,5 @@ function apply_onkeypress_event() {
return true;
});
}
jQuery(document).ready(apply_onkeypress_event);

View file

@ -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 -->

View file

@ -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>