Changeset 1890 for trunk


Ignore:
Timestamp:
2011-04-19 09:54:25 (13 months ago)
Author:
mpo
Message:

Don't hide the set 'digits' by applying the form-wide setValue of sparse data.
Plus some cosmetics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samples/kauri-forms-sample/src/main/kauri/pages/selection-control.html.xml

    r1830 r1890  
    88    <t:superBlock/> 
    99 
    10     <script> 
     10    <script type="text/javascript"> 
    1111      var fconf = { 
    1212          "members": { 
     
    173173           
    174174          var theform = new jQuery.org.kauriproject.forms.Form("form", fconf); 
    175           theform.findControl('digits').setWireValue([1,2]); 
     175          theform.setWireValue({carMake:"2", carModel:"Espace"}); 
    176176/* 
    177177          theform.findControl('carMake').setWireValue("2"); 
    178178          theform.findControl('carModel').setWireValue("Espace"); 
    179179*/ 
    180           theform.setWireValue({carMake:"2", carModel:"Espace"}); 
    181  
     180 
     181          theform.findControl('digits').setWireValue([1,2]); 
    182182          var alldigits = [1,2,3,4,5,6,7,8,9,0]; 
    183183           
    184184          $("#digits_addOption").click(function() { 
    185               var ctrl = theform.findControl('/digits/1'); 
     185              var ctrl = theform.findControl('/digits/0'); 
     186              if (ctrl == undefined) return; 
     187               
    186188              var opts = ctrl.options; 
    187189              // note: we are sure that at least one child is there,  
Note: See TracChangeset for help on using the changeset viewer.