diff options
| author | ctrlaltca@gmail.com <> | 2011-05-11 14:15:37 +0000 | 
|---|---|---|
| committer | ctrlaltca@gmail.com <> | 2011-05-11 14:15:37 +0000 | 
| commit | a99669b6909daf496741496e8909b14a43fd4395 (patch) | |
| tree | 77a6d03064d8ed9e7215890f6b2188fb21f52ba4 /framework/Web/Javascripts/source | |
| parent | 6d393ad48a1bf37a83715611846bfb4a47ad5f5e (diff) | |
fixed #261
Diffstat (limited to 'framework/Web/Javascripts/source')
| -rw-r--r-- | framework/Web/Javascripts/source/prado/validator/validation3.js | 20 | 
1 files changed, 16 insertions, 4 deletions
| diff --git a/framework/Web/Javascripts/source/prado/validator/validation3.js b/framework/Web/Javascripts/source/prado/validator/validation3.js index f19b3445..6d42365a 100644 --- a/framework/Web/Javascripts/source/prado/validator/validation3.js +++ b/framework/Web/Javascripts/source/prado/validator/validation3.js @@ -1155,10 +1155,22 @@ Prado.WebUI.TBaseValidator.prototype =  	 getValidationValue : function(control)
  	 {
  	 	var value = this.getRawValidationValue(control);
 -		if(Object.isString(value))
 -			return this.trim(value);
 -		else
 -			return value;
 +		if(!control)
 +			control = this.control
 +		switch(this.options.ControlType)
 +		{
 +			case 'TDatePicker':
 +				return value;
 +			case 'THtmlArea':
 +				return this.trim(value);
 +			case 'TRadioButton':
 +				return value;
 +			default:
 +				if(this.isListControlType())
 +					return value;
 +				else
 +					return this.trim(value);
 +		}
  	 },
  	/**
 | 
