aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2010-01-17 16:58:38 +0000
committerChris Smith <toonarmy@phpbb.com>2010-01-17 16:58:38 +0000
commitb9ef9b8786bf96cdd57dce15612b24b55c501dd3 (patch)
tree597a73a9a5e3bc026dfbe3b86e69f26b497f6ed4
parent1d0197a3dd3392757702274db3788e73e36618f5 (diff)
downloadforums-b9ef9b8786bf96cdd57dce15612b24b55c501dd3.tar
forums-b9ef9b8786bf96cdd57dce15612b24b55c501dd3.tar.gz
forums-b9ef9b8786bf96cdd57dce15612b24b55c501dd3.tar.bz2
forums-b9ef9b8786bf96cdd57dce15612b24b55c501dd3.tar.xz
forums-b9ef9b8786bf96cdd57dce15612b24b55c501dd3.zip
- 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
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js4
1 files 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;