summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-04-17 02:04:06 +0000
committerxue <>2006-04-17 02:04:06 +0000
commit52e7a15e90626989b53925ff9c573691154fd79f (patch)
tree12b73016f2607c10af4f30c52d5a5a94bf189a04
parent9db90898be134c9f70c0b334ec071223e60ed76c (diff)
Merge from 3.0 branch till 928.
-rw-r--r--.gitattributes2
-rw-r--r--HISTORY4
-rw-r--r--docs/conceptual-structure.vsdbin201728 -> 0 bytes
-rw-r--r--docs/request-sequence.vsdbin184832 -> 0 bytes
-rw-r--r--framework/Web/Javascripts/js/prado.js5
-rw-r--r--framework/Web/Javascripts/js/validator.js6
-rw-r--r--framework/Web/Javascripts/prado/form.js7
-rw-r--r--framework/Web/Javascripts/prado/validation.js8
-rw-r--r--framework/Web/UI/TTemplateManager.php4
-rw-r--r--index.html3
10 files changed, 18 insertions, 21 deletions
diff --git a/.gitattributes b/.gitattributes
index d49db2bb..e4bfdf73 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -325,8 +325,6 @@ demos/sqlmap-sample/tests/readme.txt -text
demos/sqlmap-sample/tests/run_tests.php -text
demos/sqlmap-sample/tests/sqlmap.xml -text
docs/application.xml -text
-docs/conceptual-structure.vsd -text
-docs/request-sequence.vsd -text
docs/specs/application.dtd -text
docs/specs/application.xsd -text
docs/specs/config.dtd -text
diff --git a/HISTORY b/HISTORY
index a316ad36..418a6b9f 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8,6 +8,10 @@ NEW: TPageStateFormatter (Qiang)
NEW: TSessionPageStatePersister (Qiang)
NEW: SQLMap (Wei)
+Version 3.0.0 May 1, 2006
+=========================
+BUG: Ticket#131 - TImageMap and TLinkButton continue to postback even client validator fails (Wei)
+
Version 3.0RC2 April 16, 2006
=============================
BUG: Ticket#54 - recursive reverse() definition (Wei)
diff --git a/docs/conceptual-structure.vsd b/docs/conceptual-structure.vsd
deleted file mode 100644
index 4418b646..00000000
--- a/docs/conceptual-structure.vsd
+++ /dev/null
Binary files differ
diff --git a/docs/request-sequence.vsd b/docs/request-sequence.vsd
deleted file mode 100644
index 579366cb..00000000
--- a/docs/request-sequence.vsd
+++ /dev/null
Binary files differ
diff --git a/framework/Web/Javascripts/js/prado.js b/framework/Web/Javascripts/js/prado.js
index 36c1f658..794114d9 100644
--- a/framework/Web/Javascripts/js/prado.js
+++ b/framework/Web/Javascripts/js/prado.js
@@ -1681,10 +1681,7 @@ _381=Prado.Validation.ValidateValidationGroup(_379["ValidationGroup"]);
_381=Prado.Validation.ValidateNonGroup(form);
}
if(!_381){
-if(_379["StopEvent"]){
-Event.stop(_378);
-}
-return;
+return Event.stop(_378);
}
}
if(_379["PostBackUrl"]&&_379["PostBackUrl"].length>0){
diff --git a/framework/Web/Javascripts/js/validator.js b/framework/Web/Javascripts/js/validator.js
index b5321743..867efc22 100644
--- a/framework/Web/Javascripts/js/validator.js
+++ b/framework/Web/Javascripts/js/validator.js
@@ -144,10 +144,8 @@ var _42=Prado.Validation.validators;
for(var i=0;i<_42.length;i++){
_42[i].enabled=!_42[i].control||undef(_42[i].control.form)||_42[i].control.form==_40;
_42[i].visible=Prado.Validation.IsGroupValidation?_42[i].inActiveGroup():true;
-if(Prado.Validation.HasTargetGroup||_42[i].group){
-if(_42[i].group!=Prado.Validation.CurrentTargetGroup){
-_42[i].enabled=false;
-}
+if(Prado.Validation.HasTargetGroup){
+_42[i].enabled=Prado.Validation.CurrentTargetGroup==_42[i].group;
}
_41&=_42[i].validate();
}
diff --git a/framework/Web/Javascripts/prado/form.js b/framework/Web/Javascripts/prado/form.js
index d2286b23..5f4c80d8 100644
--- a/framework/Web/Javascripts/prado/form.js
+++ b/framework/Web/Javascripts/prado/form.js
@@ -117,8 +117,8 @@ Prado.PostBack = function(event,options)
if(!valid)
{
- if(options['StopEvent']) Event.stop(event);
- return;
+ //if(options['StopEvent'])
+ return Event.stop(event);
}
}
@@ -141,7 +141,8 @@ Prado.PostBack = function(event,options)
$('PRADO_POSTBACK_TARGET').value = options['EventTarget'];
$('PRADO_POSTBACK_PARAMETER').value = options['EventParameter'];
Event.fireEvent(form,"submit");
- if(options['StopEvent']) Event.stop(event);
+ if(options['StopEvent'])
+ Event.stop(event);
}
/*
diff --git a/framework/Web/Javascripts/prado/validation.js b/framework/Web/Javascripts/prado/validation.js
index ba68becc..454f53f0 100644
--- a/framework/Web/Javascripts/prado/validation.js
+++ b/framework/Web/Javascripts/prado/validation.js
@@ -301,11 +301,8 @@ Prado.Validation.IsValid = function(form)
//when group validation, only validators in the active group are visible.
validators[i].visible = Prado.Validation.IsGroupValidation ? validators[i].inActiveGroup() : true;
- if(Prado.Validation.HasTargetGroup || validators[i].group)
- {
- if(validators[i].group != Prado.Validation.CurrentTargetGroup)
- validators[i].enabled = false;
- }
+ if(Prado.Validation.HasTargetGroup)
+ validators[i].enabled = Prado.Validation.CurrentTargetGroup == validators[i].group
valid &= validators[i].validate();
}
@@ -314,6 +311,7 @@ Prado.Validation.IsValid = function(form)
Prado.Validation.ShowSummary(form);
//reset all the group active status to false
Prado.Validation.UpdateActiveGroup();
+
return valid;
}
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php
index 6b7202f7..13a5cd28 100644
--- a/framework/Web/UI/TTemplateManager.php
+++ b/framework/Web/UI/TTemplateManager.php
@@ -451,7 +451,7 @@ class TTemplate extends TApplicationComponent implements ITemplate
$component->bindProperty($name,$value[1]);
break;
case self::CONFIG_EXPRESSION: // expression
- $component->setSubProperty($name,$component->evaluateExpression($value[1]));
+ $component->autoBindProperty($name,$value[1]);
break;
case self::CONFIG_TEMPLATE:
$component->setSubProperty($name,$value[1]);
@@ -464,7 +464,7 @@ class TTemplate extends TApplicationComponent implements ITemplate
$component->setSubProperty($name,$this->getApplication()->getParameters()->itemAt($value[1]));
break;
case self::CONFIG_LOCALIZATION:
- $component->setSubProperty($name,localize($value[1]));
+ $component->setSubProperty($name,Prado::localize($value[1]));
break;
default: // an error if reaching here
break;
diff --git a/index.html b/index.html
index c2c3d5e7..707afce9 100644
--- a/index.html
+++ b/index.html
@@ -7,9 +7,10 @@
<body>
<h1>PRADO Framework for PHP 5 </h1>
-<p>Version 3.0.0RC2, April 16, 2006<br>
+<p>Version 3.0.0, May 1, 2006<br>
Copyright&copy; 2004-2006 by <a href="http://www.pradosoft.com/">PradoSoft</a><br>
All Rights Reserved.
+</p>
<p>PRADO is a component-based and event-driven framework for Web application
development in PHP 5. </p>