- Forgot to fix jQuery code in r10409 #54395

- Also changed using jQuery instead of the $ shortcut


git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10416 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Chris Smith 2010-01-17 16:58:38 +00:00
parent 1d0197a3dd
commit b9ef9b8786

View file

@ -398,9 +398,9 @@ function apply_onkeypress_event()
// jQuery code in case jQuery is used
if (jquery_present)
{
$('form input').live('keypress', function (e)
jQuery('form input[type=text], form input[type=password]').live('keypress', function (e)
{
var default_button = $(this).parents('form').find('input[type=submit].default-submit-action');
var default_button = jQuery(this).parents('form').find('input[type=submit].default-submit-action');
if (!default_button || default_button.length <= 0)
return true;