diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/UI/WebControls/TBaseValidator.php | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php index 59af7e7f..6f32ae4f 100644 --- a/framework/Web/UI/WebControls/TBaseValidator.php +++ b/framework/Web/UI/WebControls/TBaseValidator.php @@ -614,7 +614,7 @@ class TValidatorClientSide extends TClientSideOptions * This will override the default client-side validator behaviour. * @param string javascript code for client-side OnSuccess event. */ - public function setOnSuccess($javascript) + public function setOnValidationSuccess($javascript) { $this->setFunction('OnValidationSuccess', $javascript); } @@ -622,7 +622,7 @@ class TValidatorClientSide extends TClientSideOptions /** * @return string javascript code for client-side OnSuccess event. */ - public function getOnSuccess() + public function getOnValidationSuccess() { return $this->getOption('OnValidationSuccess'); } @@ -632,44 +632,9 @@ class TValidatorClientSide extends TClientSideOptions * This will override the default client-side validator behaviour. * @param string javascript code for client-side OnError event. */ - public function setOnError($javascript) - { - $this->setFunction('OnValidationError', $javascript); - } - - /** - * @return string javascript code for client-side OnError event. - */ - public function getOnError() - { - return $this->getOption('OnValidationError'); - } - - - /** - * Alias for OnSuccess - * @param string javascript code for client-side OnSuccess event. - */ - public function setOnValidationSuccess($javascript) - { - $this->setOnSuccess($javascript); - } - - /** - * @return string javascript code for client-side OnSuccess event. - */ - public function getOnValidationSuccess() - { - return $this->getOnSuccess(); - } - - /** - * Alias for OnError - * @param string javascript code for client-side OnError event. - */ public function setOnValidationError($javascript) { - $this->setOnError($javascript); + $this->setFunction('OnValidationError', $javascript); } /** @@ -677,7 +642,7 @@ class TValidatorClientSide extends TClientSideOptions */ public function getOnValidationError() { - return $this->getOnError(); + return $this->getOption('OnValidationError'); } /** |