Changeset 376 for Dev/branches/rest-dojo-ui/client/rft/pages
- Timestamp:
- 07/25/12 16:04:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/question.js
r374 r376 39 39 _refresh: function () { 40 40 this._toolkit.loadQuestion(this.question); 41 this._preview.insertObjects(this.question.content || []); 41 42 }, 42 43 _onSave: function() { 43 44 lang.mixin(this.question, this._toolkit.propertiesForm.get('value')); 44 45 this.question.categories = this._toolkit._categories; 46 this.question.content = this._preview.getContent(); 45 47 store.put(this.question) 46 48 .then(function() { … … 50 52 }, 51 53 _onDiscard: function() { 52 this._toolkit.propertiesForm.reset();53 54 content.goTo('questions'); 54 55 return false; … … 71 72 }, 72 73 _setupEditor: function() { 73 // this.toolkit = new rft.ui.QuestionEditorToolkit( { question: this.question } );74 74 this._toolkit = new rft.ui.QuestionEditorToolkit(); 75 75 this._toolkit.placeAt("QuestionEditorToolkit");
Note: See TracChangeset
for help on using the changeset viewer.