summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorwei <>2006-01-19 05:18:39 +0000
committerwei <>2006-01-19 05:18:39 +0000
commitfd5e244960a5824de0b3e7193d373d15be25e4e2 (patch)
treeb7b3d537c5e5f1ec966c65985259887d7a5681bc /framework/Web
parent1b70c13faf9a6a7e45556ad00b42559ff11c9487 (diff)
ibid
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/UI/WebControls/TBaseValidator.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php
index 18f5ec7e..af8eb7e9 100644
--- a/framework/Web/UI/WebControls/TBaseValidator.php
+++ b/framework/Web/UI/WebControls/TBaseValidator.php
@@ -155,8 +155,7 @@ abstract class TBaseValidator extends TLabel implements IValidator
if($this->getEnableClientScript() && !$scripts->isEndScriptRegistered($scriptKey))
{
$scripts->registerClientScript('validator');
- $js = "Prado.Validation.AddForm('$formID');";
- $scripts->registerEndScript($scriptKey, $js);
+ $scripts->registerEndScript($scriptKey, "Prado.Validation.AddForm('$formID');");
}
if($this->getEnableClientScript())
$this->registerClientScriptValidator();