Ticket #2348: ValidationTextBox.patch

File ValidationTextBox.patch, 0.6 kB (added by joose, 23 months ago)

patch

  • trunk2/src/widget/ValidationTextbox.js

     
    127127                        // summary: by Called oninit, and onblur. 
    128128                         
    129129                        // highlight textbox background  
    130                         if (this.isEmpty()) { 
     130                        if (this.isEmpty() && !this.isMissing()) { 
    131131                                this.updateClass("Empty"); 
     132                        }else if(this.isMissing()) { 
     133                                this.updateClass("Invalid"); 
    132134                        }else if (this.isValid() && this.isInRange() ){ 
    133135                                this.updateClass("Valid"); 
    134136                        }else if(this.textbox.value != this.promptMessage){