mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
- 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:
parent
1d0197a3dd
commit
b9ef9b8786
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue