Changeset 2423 for trunk/framework/Web

Show
Ignore:
Timestamp:
04/16/2008 04:09:31 PM (9 months ago)
Author:
xue
Message:

Fixed #828.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/Web/Javascripts/source/prado/validator/validation3.js

    r2418 r2423  
    195195 
    196196                        this.options = options; 
    197                  
     197 
    198198                        Prado.Validation.managers[options.FormID] = this; 
    199                 }  
     199                } 
    200200                else 
    201201                { 
     
    411411                } 
    412412 
    413                 var refresh = update || this.visible == false || this.options.Refresh != false;  
     413                var refresh = update || this.visible == false || this.options.Refresh != false; 
    414414                // Also, do not refresh summary if at least 1 validator is waiting for callback response. 
    415415                // This will avoid the flickering of summary if the validator passes its test 
    416416                refresh = refresh && validators.any(function(v) { return !v.requestDispatched; }); 
    417                  
     417 
    418418                if(this.options.ShowSummary != false && refresh) 
    419419                { 
     
    608608                this.options = options; 
    609609                this.control = $(options.ControlToValidate); 
     610                if (!this.control && this.isListControlType()){ 
     611                        this.control = $(options.ControlToValidate + '_c0').parentNode; 
     612                } 
     613 
    610614                this.message = $(options.ID); 
    611615                if(this.control && this.message) 
     
    11661170 
    11671171        /** 
    1168          * Override the parent implementation to store the invoker, in order to  
     1172         * Override the parent implementation to store the invoker, in order to 
    11691173         * re-validate after the callback has returned 
    11701174         * Calls evaluateIsValid() function to set the value of isValid property. 
     
    11761180        { 
    11771181                this.invoker = invoker; 
    1178                  
     1182 
    11791183                //try to find the control. 
    11801184                if(!this.control) 
     
    12011205                if (!this.requestDispatched) 
    12021206                        this.updateValidationDisplay(invoker); 
    1203                          
     1207 
    12041208                this.observeChanges(this.control); 
    12051209 
    12061210                return this.isValid; 
    12071211        }, 
    1208          
     1212 
    12091213        /** 
    12101214         * Calls custom validation function. 
     
    12431247                        this.invoker.dispatch(); 
    12441248                } 
    1245                  
     1249 
    12461250        }, 
    12471251