Changeset 406 for Dev/branches/rest-dojo-ui/client/rft/pages/viewSurvey.js
- Timestamp:
- 09/03/12 18:14:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/viewSurvey.js
r399 r406 23 23 store.query(null,{keys:this.survey.questions,include_docs:true}) 24 24 .forEach(function(question){ 25 array.forEach(question.content,function(item){ 26 var w = f.createViewWidget(item); 25 array.forEach(question.content || [],function(item){ 26 var w = f.createViewWidget(item,{ 27 name: question.code+'.'+item.code 28 }); 27 29 if ( w !== null ) { 28 w.placeAt(this.questionsPane.containerNode,'last'); 29 w.startup(); 30 w.placeAt(this.questionsAnchor,'before'); 30 31 } 31 32 },this); … … 37 38 }, 38 39 _onSubmit: function(evt) { 40 var value = this.questionsForm.get('value'); 41 this.questionsPane.set('content','<pre>'+JSON.stringify(value)+'</pre>'); 39 42 event.stop(evt); 40 43 return false;
Note: See TracChangeset
for help on using the changeset viewer.