From b9ef9b8786bf96cdd57dce15612b24b55c501dd3 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 17 Jan 2010 16:58:38 +0000 Subject: [PATCH] - 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 --- phpBB/styles/prosilver/template/forum_fn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index fa5de17448..6fb3778952 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -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;