diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | framework/Web/Javascripts/source/prado/controls/controls.js | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -20,6 +20,7 @@ BUG: TActiveFileUpload: urlencode the base64'ed token since it can contain the " BUG: TCaptcha: publish images with image/png content-type (ctrlaltca) BUG: Issue #35 - [840] Capital letters for the initial letter of the directories name (ctrlaltca) +BUG: Issue #66 - TButton.CausesValidation=False ignored when pressing Enter on the button within a control with DefaultButton (ctrlaltca) NEW: Issue #83 - PHP configuration style (Carl) ENH: Issue #106 - TJavaScript::jsonEncode and TJavaScript::jsonDecode should use built-in PHP functions (ctrlaltca) ENH: Issue #173 - Add "dragdropextra" (supergsting) patch, mouse coordinates and key status to drag & drop controls (Christophe, DevWorx) 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)
|