Ticket #2630: IntegerTextbox.patch

File IntegerTextbox.patch, 490 bytes (added by joose, 21 months ago)

Fix for empty values when value is not required for isValid function

  • src/widget/IntegerTextbox.js

     
    5252 
    5353                isValid: function(){ 
    5454                        // summary: Over-ride for integer validation 
     55                        if(!this.isMissing()){ 
     56                                if(this.textbox.value == ""){ 
     57                                        return true; 
     58                                }        
     59                        } 
    5560                        return dojo.validate.isInteger(this.textbox.value, this.flags); 
    5661                }, 
    5762                isInRange: function(){