[ticket/11879] Replace .live() with .on()

PHPBB3-11879
This commit is contained in:
Vjacheslav Trushkin 2013-10-02 11:12:41 +03:00
parent 50f6af2a20
commit a79d0e6758

View file

@ -403,7 +403,7 @@ function apply_onkeypress_event()
// jQuery code in case jQuery is used
if (jquery_present)
{
jQuery('form input[type=text], form input[type=password]').live('keypress', function (e)
jQuery('form input[type=text], form input[type=password]').on('keypress', function (e)
{
var default_button = jQuery(this).parents('form').find('input[type=submit].default-submit-action');