- Timestamp:
- 03/12/14 02:23:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/model/widgets/SurveyRenderWidget.js
r487 r508 21 21 this.survey = survey; 22 22 var f = new QuestionWidgetFactory(); 23 array.forEach(this.survey.questions,function(question ,question_index){24 array.forEach(question.content || [], function(item ,item_index){25 // The dot causes values to be grouped in an object!23 array.forEach(this.survey.questions,function(question){ 24 array.forEach(question.content || [], function(item){ 25 item.code = question.code; 26 26 var w = f.createViewWidget(item); 27 27 if ( w !== null ) { 28 w.name = question_index.toString()+'/'+question.code.toString()+'.'+item_index.toString();29 28 w.placeAt(this.domNode); 29 w.startup(); 30 30 } 31 31 },this);
Note: See TracChangeset
for help on using the changeset viewer.