From fd5e244960a5824de0b3e7193d373d15be25e4e2 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 19 Jan 2006 05:18:39 +0000 Subject: ibid --- framework/Web/UI/WebControls/TBaseValidator.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'framework/Web/UI') 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(); -- cgit v1.2.3