Changeset 2100

Show
Ignore:
Timestamp:
07/27/2007 02:37:47 PM (15 months ago)
Author:
xue
Message:

Validators will not validate disabled controls

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/HISTORY

    r2095 r2100  
    22============================ 
    33BUG: Ticket#592 - TRadioButton with UniqueGroupName always return false to getChecked (Christophe) 
     4BUG: Ticket#648 - Validation: onClick and onBlur events order (Christophe) 
    45BUG: Ticket#656 - TDatePicker does not return correct value when in callback mode (Christophe) 
    56BUG: Ticket#662 - Ensure TForm to properly encode the ampersand in action URL (Qiang) 
    67BUG: Ticket#666 - TActiveRecord::deleteAll() method always requires a criteria or null parameter (Qiang) 
    78BUG: Ticket#670 - TDatePicker: Year Issue (Christophe) 
    8 BUG: Ticket#648 - Validation: onClick and onBlur events order (Christophe) 
    99ENH: Ticket#577 - Added image button support for TPager (Qiang) 
    1010ENH: Ticket#623 - TMemCache to support multiple servers (Carl) 
     
    1313ENH: Added THead requirement check (Qiang) 
    1414CHG: GeSHi is replaced with Text_Highlighter (Christophe) 
     15CHG: Validators will not validate disabled controls (Qiang) 
    1516NEW: Added TTabPanel (Qiang) 
    1617NEW: Ticket#676 - Added primilary Oracle support (Christophe) 
  • trunk/framework/Web/Javascripts/source/prado/validator/validation3.js

    r2067 r2100  
    626626                if(this.message) 
    627627                { 
    628                         if(this.options.Display == "Dynamic")  
     628                        if(this.options.Display == "Dynamic") 
    629629                        { 
    630630                                var msg=this.message; 
     
    685685                        this.control = $(this.options.ControlToValidate); 
    686686 
    687                 if(!this.control) 
     687                if(!this.control || this.control.disabled) 
    688688                { 
    689689                        this.isValid = true; 
  • trunk/framework/Web/UI/WebControls/TBaseValidator.php

    r1791 r2100  
    486486                if($this->getVisible(true) && $this->getEnabled(true)) 
    487487                { 
    488                         if($this->getValidationTarget()) 
     488                        // if the target is not a disabled web control 
     489                        if(($target=$this->getValidationTarget())!==null && !($target instanceof TWebControl && !$target->getEnabled(true))) 
    489490                        { 
    490491                                if($this->evaluateIsValid())