Changeset 1449
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/control.js
r1447 r1449 218 218 if (space.is(kauriSelector) ) 219 219 space.each(indexor); 220 // then go through matching children, but only once (even if they match multiple times) 221 var matching = $($.unique($(kauriSelector, space))).filter(function(){ 222 // TODO should we do this this way or should be traverse the tree ourselves (performance?) 223 var $this = $(this); 224 var revParents = $this.parents("[" + ControlElements.ATTR_LAYOUT + "]"); 225 226 return (revParents == null || revParents.length==0); 227 }); 228 matching.each(indexor); 220 221 $.unique($(kauriSelector, space)).each(indexor); 229 222 230 223 … … 957 950 958 951 // allow control-specific initialization of containment elements 959 this.initContainerElements( this.getParent() ? this.getParent().getElement() : this.getElement());952 this.initContainerElements(); 960 953 961 954 //initialize options … … 2013 2006 * @private 2014 2007 */ 2015 AbstractContainerControl.prototype.initContainerElements = function(c ontainer, create){2008 AbstractContainerControl.prototype.initContainerElements = function(create){ 2016 2009 var id = this.getAbsoluteId(); 2017 2010 … … 2164 2157 */ 2165 2158 AbstractContainerControl.prototype.createChildControl = function(id, type, position){ 2166 2159 if (type == undefined) 2160 throw "[AbstractContainerControl.createChildControl] Unknown type for member: " + id + " of control " + 2161 this.getAbsoluteId(); 2162 2163 2167 2164 var controlType = type.control; 2168 2165 var extender = {}; -
trunk/samples/kauri-forms-sample/src/main/kauri/pages/collection-control.html.xml
r1446 r1449 86 86 <label kauri-role="label" kauri-idref="countries">Countries</label> 87 87 88 <table kauri-idref="countries" kauri-type="collection" kauri-item="country">88 <table kauri-idref="countries" kauri-type="collection" > 89 89 <thead> 90 90 <tr> … … 99 99 100 100 <tbody kauri-role="container"> 101 <tr kauri-layout=" country">101 <tr kauri-layout="/countries"> 102 102 103 103 <td >
Note: See TracChangeset
for help on using the changeset viewer.