summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts
diff options
context:
space:
mode:
authorxue <>2006-01-09 01:56:12 +0000
committerxue <>2006-01-09 01:56:12 +0000
commit47be9e10cfa0aae464a8e9789db9b438378a6099 (patch)
treebaa5f153dccecb784455fe633d7e53115478d9e7 /framework/Web/Javascripts
parenta02e83d8971568617a1723a2bd2b60b79c78faa8 (diff)
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r--framework/Web/Javascripts/base/postback.js3
-rw-r--r--framework/Web/Javascripts/js/base.js9
2 files changed, 3 insertions, 9 deletions
diff --git a/framework/Web/Javascripts/base/postback.js b/framework/Web/Javascripts/base/postback.js
index 7acb945e..2889c4ff 100644
--- a/framework/Web/Javascripts/base/postback.js
+++ b/framework/Web/Javascripts/base/postback.js
@@ -12,7 +12,8 @@ Prado.doPostBack = function(formID, eventTarget, eventParameter, performValidati
var canSubmit = true;
if (performValidation)
{
- canSubmit = Prado.Validation.validate(validationGroup);
+ //canSubmit = Prado.Validation.validate(validationGroup);
+ canSubmit = Prado.Validation.OnSubmit();
}
if (canSubmit)
{
diff --git a/framework/Web/Javascripts/js/base.js b/framework/Web/Javascripts/js/base.js
index b999f722..86c7ef83 100644
--- a/framework/Web/Javascripts/js/base.js
+++ b/framework/Web/Javascripts/js/base.js
@@ -871,13 +871,6 @@ return false;
}
return true;
};
-Prado.LinkButton=Class.create();
-Prado.LinkButton.prototype={initialize:function(_7,_8){
-Event.observe(_7,"click",function(e){
-Prado.doPostback(_7,_8,"");
-Event.stop(e);
-});
-}};
Prado.doPostBack=function(_1,_2,_3,_4,_5,_6,_7,_8){
if(typeof (_4)=="undefined"){
@@ -890,7 +883,7 @@ var _8=true;
var _9=document.getElementById?document.getElementById(_1):document.forms[_1];
var _10=true;
if(_4){
-_10=Prado.Validation.validate(_5);
+_10=Prado.Validation.OnSubmit();
}
if(_10){
if(_6!=null&&(_6.length>0)){