diff options
| author | xue <> | 2006-08-05 21:34:30 +0000 | 
|---|---|---|
| committer | xue <> | 2006-08-05 21:34:30 +0000 | 
| commit | b7f95ce37ae577e95a81e64aa2aaf3e2e698109d (patch) | |
| tree | 85c6b9961ebbd4c9283fbd9b841703f9e4c47307 /framework/Web/UI/WebControls/TBaseValidator.php | |
| parent | 550ba06593b467b643862d41a00ca2dd12ee704b (diff) | |
merge from 3.0 branch till 1329.
Diffstat (limited to 'framework/Web/UI/WebControls/TBaseValidator.php')
| -rw-r--r-- | framework/Web/UI/WebControls/TBaseValidator.php | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php index 6660184e..ff026b49 100644 --- a/framework/Web/UI/WebControls/TBaseValidator.php +++ b/framework/Web/UI/WebControls/TBaseValidator.php @@ -167,6 +167,10 @@ abstract class TBaseValidator extends TLabel implements IValidator  		$options['ControlCssClass'] = $this->getControlCssClass();  		$options['ControlType'] = $this->getClientControlClass($control); +		 +		//get date format from date picker target control +		if($control instanceof TDatePicker) +			$options['DateFormat'] = $control->getDateFormat();  		if(!is_null($this->_clientSide))  			$options = array_merge($options,$this->_clientSide->getOptions()->toArray()); | 
