summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/Web/Javascripts/source/prado/validator/validation3.js20
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);
+ }
},
/**