Changeset 2423 for trunk/framework/Web
- Timestamp:
- 04/16/2008 04:09:31 PM (9 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/framework/Web/Javascripts/source/prado/validator/validation3.js
r2418 r2423 195 195 196 196 this.options = options; 197 197 198 198 Prado.Validation.managers[options.FormID] = this; 199 } 199 } 200 200 else 201 201 { … … 411 411 } 412 412 413 var refresh = update || this.visible == false || this.options.Refresh != false; 413 var refresh = update || this.visible == false || this.options.Refresh != false; 414 414 // Also, do not refresh summary if at least 1 validator is waiting for callback response. 415 415 // This will avoid the flickering of summary if the validator passes its test 416 416 refresh = refresh && validators.any(function(v) { return !v.requestDispatched; }); 417 417 418 418 if(this.options.ShowSummary != false && refresh) 419 419 { … … 608 608 this.options = options; 609 609 this.control = $(options.ControlToValidate); 610 if (!this.control && this.isListControlType()){ 611 this.control = $(options.ControlToValidate + '_c0').parentNode; 612 } 613 610 614 this.message = $(options.ID); 611 615 if(this.control && this.message) … … 1166 1170 1167 1171 /** 1168 * Override the parent implementation to store the invoker, in order to 1172 * Override the parent implementation to store the invoker, in order to 1169 1173 * re-validate after the callback has returned 1170 1174 * Calls evaluateIsValid() function to set the value of isValid property. … … 1176 1180 { 1177 1181 this.invoker = invoker; 1178 1182 1179 1183 //try to find the control. 1180 1184 if(!this.control) … … 1201 1205 if (!this.requestDispatched) 1202 1206 this.updateValidationDisplay(invoker); 1203 1207 1204 1208 this.observeChanges(this.control); 1205 1209 1206 1210 return this.isValid; 1207 1211 }, 1208 1212 1209 1213 /** 1210 1214 * Calls custom validation function. … … 1243 1247 this.invoker.dispatch(); 1244 1248 } 1245 1249 1246 1250 }, 1247 1251
