diff options
Diffstat (limited to 'framework/Web/Javascripts/prado')
-rw-r--r-- | framework/Web/Javascripts/prado/form.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/framework/Web/Javascripts/prado/form.js b/framework/Web/Javascripts/prado/form.js index a9943e14..059aab5f 100644 --- a/framework/Web/Javascripts/prado/form.js +++ b/framework/Web/Javascripts/prado/form.js @@ -109,12 +109,15 @@ Prado.PostBack = function(event,options) else
Prado.Validation.SetActiveGroup(null,null);
if(Prado.Validation.IsValid(form) == false)
+ {
+ if(options['StopEvent']) Event.stop(event);
return;
+ }
}
-
+
if(options['PostBackUrl'] && options['PostBackUrl'].length > 0)
form.action = options['PostBackUrl'];
-
+
if(options['TrackFocus'])
{
var lastFocus = $('PRADO_LASTFOCUS');
@@ -127,9 +130,9 @@ Prado.PostBack = function(event,options) lastFocus.value = options['EventTarget'];
}
}
-
+
$('PRADO_POSTBACK_TARGET').value = options['EventTarget'];
- $('PRADO_POSTBACK_PARAMETER').value = options['EventParameter'];
+ $('PRADO_POSTBACK_PARAMETER').value = options['EventParameter'];
Event.fireEvent(form,"submit");
if(options['StopEvent']) Event.stop(event);
}
|