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