diff options
author | wei <> | 2006-07-14 05:27:35 +0000 |
---|---|---|
committer | wei <> | 2006-07-14 05:27:35 +0000 |
commit | 26c3775697fc94086269d54099576679137e5eda (patch) | |
tree | 349d684c5b1a4db7e09e79f3376cad7ef391a0ee /framework/Web/UI/WebControls/TCustomValidator.php | |
parent | 873b2586d6d4ccb8416cd5aac132d992656c1ef5 (diff) |
Fixed #284
Diffstat (limited to 'framework/Web/UI/WebControls/TCustomValidator.php')
-rw-r--r-- | framework/Web/UI/WebControls/TCustomValidator.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TCustomValidator.php b/framework/Web/UI/WebControls/TCustomValidator.php index 32510f89..2afa48dc 100644 --- a/framework/Web/UI/WebControls/TCustomValidator.php +++ b/framework/Web/UI/WebControls/TCustomValidator.php @@ -120,6 +120,16 @@ class TCustomValidator extends TBaseValidator $options['ClientValidationFunction']=$clientJs;
return $options;
}
+
+ /**
+ * Only register the client-side validator if
+ * {@link setClientValidationFunction ClientValidationFunction} is set.
+ */
+ protected function registerClientScriptValidator()
+ {
+ if($this->getClientValidationFunction()!=='')
+ parent::registerClientScriptValidator();
+ }
}
/**
|