summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-05-11 14:15:37 +0000
committerctrlaltca@gmail.com <>2011-05-11 14:15:37 +0000
commita99669b6909daf496741496e8909b14a43fd4395 (patch)
tree77a6d03064d8ed9e7215890f6b2188fb21f52ba4 /framework
parent6d393ad48a1bf37a83715611846bfb4a47ad5f5e (diff)
fixed #261
Diffstat (limited to 'framework')
-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);
+ }
},
/**