Changeset 2418 for trunk/framework/Web
- Timestamp:
- 04/08/2008 09:48:48 AM (9 months ago)
- Location:
- trunk/framework/Web
- Files:
-
- 2 modified
-
Javascripts/source/prado/validator/validation3.js (modified) (1 diff)
-
UI/WebControls/TBaseValidator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/framework/Web/Javascripts/source/prado/validator/validation3.js
r2410 r2418 668 668 { 669 669 if(valid) 670 control.removeClassName(CssClass); 670 { 671 if (control.lastValidator == this.options.ID) 672 { 673 control.lastValidator = null; 674 control.removeClassName(CssClass); 675 } 676 } 671 677 else 678 { 679 control.lastValidator = this.options.ID; 672 680 control.addClassName(CssClass); 681 } 673 682 } 674 683 }, -
trunk/framework/Web/UI/WebControls/TBaseValidator.php
r2100 r2418 244 244 if($this->getEnableClientScript() & $this->getEnabled(true)) 245 245 $this->registerClientScriptValidator(); 246 } 247 248 /** 249 * Override parent implementation to update the control CSS Class before 250 * the validated control is rendered 251 */ 252 public function onPreRender ($param) 253 { 254 parent::onPreRender($param); 246 255 $this->updateControlCssClass(); 247 256 } 248 257 249 258 /** 250 259 * Update the ControlToValidate component's css class depending
