Changeset 1632


Ignore:
Timestamp:
2010-07-26 14:53:59 (3 years ago)
Author:
freya
Message:

fixed: control with initial properties defined was disabled by default (see #348)

Location:
trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/case.js

    r1630 r1632  
    225225    * @private 
    226226    */ 
    227     CaseControl.prototype.initEventWiring = function () { 
     227    CaseControl.prototype.initEvents = function () { 
    228228        var me = this; 
    229229        var caseControl = this.getChild("case"); 
    230          
    231230        // we are now setting the valueChanged handler 
    232231        caseControl.valueChanged(function (evt) { 
  • trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/control.js

    r1625 r1632  
    15921592     */ 
    15931593    Control.prototype.setWireValue = function(wireValue, noValidation){ 
    1594      
    15951594        try { 
    15961595            var value = this.getType().parseWireValue(wireValue); 
     
    24162415            }, 
    24172416            isEnabled: function(){ 
    2418                 return me.initial.enable && this.initial.enable; 
     2417                return (me.initial.enable && this.initial.enable) || me.initial.enable == undefined ; 
    24192418            } 
    24202419        }); // inline overwrite the getParent method on the child being created  
Note: See TracChangeset for help on using the changeset viewer.