aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2010-01-17 16:32:10 +0000
committerChris Smith <toonarmy@phpbb.com>2010-01-17 16:32:10 +0000
commit1f59edf140b7910ccb1ea62510a9d93b774f123e (patch)
tree63d7dfcb13321d2036fbc50567a0a313950308f2 /phpBB/styles/prosilver/template
parentf8178778f83bf388af3426f952b5d7ed336b0e81 (diff)
downloadforums-1f59edf140b7910ccb1ea62510a9d93b774f123e.tar
forums-1f59edf140b7910ccb1ea62510a9d93b774f123e.tar.gz
forums-1f59edf140b7910ccb1ea62510a9d93b774f123e.tar.bz2
forums-1f59edf140b7910ccb1ea62510a9d93b774f123e.tar.xz
forums-1f59edf140b7910ccb1ea62510a9d93b774f123e.zip
Don't submit when pressing enter on preview button. Regression from r10069 #54395
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10409 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/styles/prosilver/template')
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js
index 074c250b18..fa5de17448 100644
--- a/phpBB/styles/prosilver/template/forum_fn.js
+++ b/phpBB/styles/prosilver/template/forum_fn.js
@@ -424,11 +424,11 @@ function apply_onkeypress_event()
for (var i = 0, element = input_tags[0]; i < input_tags.length ; element = input_tags[++i])
{
- if (element.type == 'hidden')
- continue;
-
- // onkeydown is possible too
- element.onkeypress = function (evt) { submit_default_button((evt || window.event), this, 'default-submit-action'); };
+ if (element.type == 'text' || element.type == 'password')
+ {
+ // onkeydown is possible too
+ element.onkeypress = function (evt) { submit_default_button((evt || window.event), this, 'default-submit-action'); };
+ }
}
}