summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-12-21 13:14:26 +0000
committerctrlaltca@gmail.com <>2011-12-21 13:14:26 +0000
commit9409f9ee7d83635d262d303edee9136dd6170e14 (patch)
tree2b43e3ac49c180bda497cfd49a36b912d8e2b9a2 /framework/Web
parentb26680c80e112cc91755fea84426f2d57beb4232 (diff)
fixed #66
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/Javascripts/source/prado/controls/controls.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/source/prado/controls/controls.js b/framework/Web/Javascripts/source/prado/controls/controls.js
index 43dd889e..9dadff18 100644
--- a/framework/Web/Javascripts/source/prado/controls/controls.js
+++ b/framework/Web/Javascripts/source/prado/controls/controls.js
@@ -210,7 +210,9 @@ Prado.WebUI.DefaultButton.prototype =
{
var enterPressed = Event.keyCode(ev) == Event.KEY_RETURN;
var isTextArea = Event.element(ev).tagName.toLowerCase() == "textarea";
- if(enterPressed && !isTextArea)
+ var isValidButton = Event.element(ev).tagName.toLowerCase() == "input" && Event.element(ev).type.toLowerCase() == "submit";
+
+ if(enterPressed && !isTextArea && !isValidButton)
{
var defaultButton = $(this.options['Target']);
if(defaultButton)