Changeset 525 for Dev/trunk/src/client/qed-client/widgets
- Timestamp:
- 03/19/14 21:33:13 (11 years ago)
- Location:
- Dev/trunk/src/client/qed-client/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/widgets/ListWidget.js
r513 r525 98 98 _getValueAttr: function() { 99 99 return array.map( 100 this._getDescendantFormWidgets(), 101 function(child) { return child.get('value'); } 102 ,this); 100 this.source.getAllNodes(), 101 lang.hitch(this,function(node){ 102 var widget = registry.byNode(node); 103 if ( widget && 'value' in widget ) { 104 return widget.get('value'); 105 } else { 106 return this.source.getItem(node.id).data; 107 } 108 })); 103 109 }, 104 110 _setValueAttr: function(value,priorityChange) { -
Dev/trunk/src/client/qed-client/widgets/_ComplexValueMixin.js
r513 r525 64 64 if (typeof widgets[0].checked === 'boolean') { 65 65 array.forEach(widgets, function(w){ 66 w.set('value', array.indexOf(values, w._get('value')) !== -1, priorityChange); 66 w.set('value', 67 array.indexOf(values,w._get('value'))!==-1, 68 priorityChange); 67 69 }); 68 70 } else if (widgets[0].multiple) { … … 90 92 _setDisabledAttr: function(disabled) { 91 93 this.inherited(arguments); 94 this._set('disabled',disabled); 92 95 array.forEach( 93 96 this._getDescendantFormWidgets(), … … 98 101 _setReadOnlyAttr: function(readOnly) { 99 102 this.inherited(arguments); 103 this._set('readOnly',readOnly); 100 104 array.forEach( 101 105 this._getDescendantFormWidgets(),
Note: See TracChangeset
for help on using the changeset viewer.