diff options
author | ctrlaltca@gmail.com <> | 2011-12-21 13:14:26 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-12-21 13:14:26 +0000 |
commit | 9409f9ee7d83635d262d303edee9136dd6170e14 (patch) | |
tree | 2b43e3ac49c180bda497cfd49a36b912d8e2b9a2 /framework/Web/Javascripts/source/prado/controls | |
parent | b26680c80e112cc91755fea84426f2d57beb4232 (diff) |
fixed #66
Diffstat (limited to 'framework/Web/Javascripts/source/prado/controls')
-rw-r--r-- | framework/Web/Javascripts/source/prado/controls/controls.js | 4 |
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)
|