Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk
- Property svn:ignore
-
old new 1 1 data 2 2 nbproject 3 node_modules
-
- Property svn:ignore
-
Dev/trunk/client
- Property svn:externals
-
old new 1 dojo http://svn.dojotoolkit.org/src/tags/release-1.8. 0/dojo2 dijit http://svn.dojotoolkit.org/src/tags/release-1.8. 0/dijit3 dojox http://svn.dojotoolkit.org/src/tags/release-1.8. 0/dojox4 util http://svn.dojotoolkit.org/src/tags/release-1.8. 0/util1 dojo http://svn.dojotoolkit.org/src/tags/release-1.8.3/dojo 2 dijit http://svn.dojotoolkit.org/src/tags/release-1.8.3/dijit 3 dojox http://svn.dojotoolkit.org/src/tags/release-1.8.3/dojox 4 util http://svn.dojotoolkit.org/src/tags/release-1.8.3/util
-
- Property svn:externals
-
Dev/trunk/client/qed/model/widgets/QuestionWidgetFactory.js
r421 r426 30 30 var fun = this['create'+options.type+'EditWidget']; 31 31 var view = fun !== undefined ? fun() : null; 32 if (view)32 if (view) { 33 33 view.set('value', options); 34 } 34 35 return view; 35 36 }, … … 272 273 var table = new TableContainer({ cols: 1, customClass: "labelsAndValues"} ); 273 274 274 var ctor = this.options.multiple === true ? CheckBox : RadioButton;275 array.forEach(this.options.items || [], function(item){276 table.addChild(new ctor({277 278 275 var Ctor = this.options.multiple === true ? CheckBox : RadioButton; 276 array.forEach(this.options.items || [], function(item){ 277 table.addChild(new Ctor({ 278 name: this.options.code || '', 279 title: item 279 280 })); 280 281 },this); … … 342 343 w.startup(); 343 344 w.set('value',item); 344 w.on('delete',lang.hitch(this,'_onRemove',w ));345 w.on('delete',lang.hitch(this,'_onRemove',w,item)); 345 346 return w.domNode; 346 347 }, 347 _onRemove: function(w ) {348 _onRemove: function(w,item) { 348 349 w.destroyRecursive(); 349 this.removeCallback && this.removeCallback(item);350 if ( this.removeCallback ) { this.removeCallback(item); } 350 351 this.source.sync(); 351 352 }
Note: See TracChangeset
for help on using the changeset viewer.