Changeset 366 for Dev/branches/rest-dojo-ui/client/rft/pages/questions.js
- Timestamp:
- 07/18/12 18:49:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/questions.js
r343 r366 1 1 define(['dojo/_base/declare','dojo/_base/lang','dojo/_base/event', 2 'dojo/_base/Deferred','rft/store','rft/ui/_Page','rft/ui/AccordionList' ],3 function(declare,lang,event,Deferred,store,_Page,AccordionList ) {2 'dojo/_base/Deferred','rft/store','rft/ui/_Page','rft/ui/AccordionList', 'rft/content'], 3 function(declare,lang,event,Deferred,store,_Page,AccordionList,content) { 4 4 return declare('rft.pages.questions',[_Page],{ 5 5 constructor: function() { … … 8 8 }, 9 9 onVisit: function() { 10 debugger; 10 11 this._list = new AccordionList({ 11 12 actions: { 12 'Edit': lang.hitch(this,'_editQuestion') 13 'Edit': { 14 callback: lang.hitch(this,'_editQuestion'), 15 properties: { 16 blockButton: true, 17 icon: "Edit", 18 label: "Edit" 19 } 20 } 21 22 13 23 }, 14 24 idProperty: store.idProperty, … … 32 42 }, 33 43 _editQuestion: function(question) { 34 this.questionForm.reset(); 35 this.questionWidget.set('value',question); 36 this.questionDialog.show(); 44 content.goTo("question", {uid: question._id}); 45 // this.questionForm.reset(); 46 // this.questionWidget.set('value',question); 47 // this.questionDialog.show(); 37 48 }, 38 49 onSaveQuestion: function(evt) { … … 52 63 } 53 64 }); 54 65 });
Note: See TracChangeset
for help on using the changeset viewer.