Changeset 441 for Dev/trunk/client/qed/pages/survey.js
- Timestamp:
- 04/29/13 19:35:10 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/client/qed/pages/survey.js
r426 r441 55 55 _setupListView: function() { 56 56 this.questionList = new QuestionListView({ 57 region: 'center' 57 region: 'center', 58 name: 'questions' 58 59 },this.surveyListViewNode); 59 60 this.questionList.startup(); … … 67 68 .then(lang.hitch(this,function(survey){ 68 69 this.survey = survey; 69 array.forEach(Survey.Questions.get(this.survey),70 lang.hitch(this.questionList,'appendItem'));70 this.questionList.set('value', 71 Survey.Questions.get(this.survey)); 71 72 this.refresh(); 72 73 })); … … 74 75 }, 75 76 _includeQuestion: function(question) { 76 this.questionList. insertItem(question);77 this.questionList.appendItem(question); 77 78 }, 78 79 refresh: function() { … … 97 98 }, 98 99 _onSave: function(evt) { 99 this.survey.questions = this.questionList.get Items();100 this.survey.questions = this.questionList.get('value'); 100 101 store.put(this.survey) 101 102 .then(function() {
Note: See TracChangeset
for help on using the changeset viewer.