From a99669b6909daf496741496e8909b14a43fd4395 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 11 May 2011 14:15:37 +0000 Subject: fixed #261 --- .../source/prado/validator/validation3.js | 20 ++++++++++++++++---- 1 file 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); + } }, /** -- cgit v1.2.3