diff options
author | wei <> | 2005-12-13 07:08:30 +0000 |
---|---|---|
committer | wei <> | 2005-12-13 07:08:30 +0000 |
commit | 35c7ff28cbc311fba5e394b11fb756a4dc1edcb9 (patch) | |
tree | 1ee39944b4cdba1ecc6aeb2a952139b5a3165f67 /framework/Web/UI/WebControls/TBaseValidator.php | |
parent | 2c383b6050b3d8cc6ac7a9442c999cb903af43ab (diff) |
Removed inline javascript from components. Adding TJavascriptLogger and logger.js
Diffstat (limited to 'framework/Web/UI/WebControls/TBaseValidator.php')
-rw-r--r-- | framework/Web/UI/WebControls/TBaseValidator.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php index ab314087..0d88fc43 100644 --- a/framework/Web/UI/WebControls/TBaseValidator.php +++ b/framework/Web/UI/WebControls/TBaseValidator.php @@ -111,7 +111,7 @@ abstract class TBaseValidator extends TLabel implements IValidator * Returns an array of javascript validator options. * @return array javascript validator options. */ - protected function getClientScriptAttributes() + protected function getClientScriptOptions() { $options['ID'] = $this->getClientID(); $options['Display'] = $this->getDisplay(); @@ -153,8 +153,8 @@ abstract class TBaseValidator extends TLabel implements IValidator $class = get_class($this); $scriptKey = "prado:".$this->getClientID(); $scripts = $this->getPage()->getClientScript(); - $option = TJavascript::toList($this->getClientScriptAttributes()); - $js = "new Prado.Validation(Prado.Validation.{$class}, {$option});"; + $options = TJavascript::toList($this->getClientScriptOptions()); + $js = "new Prado.Validation(Prado.Validation.{$class}, {$options});"; $scripts->registerEndScript($scriptKey, $js); } } |