- Timestamp:
- 08/06/12 17:39:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/ui/QuestionEditorToolkit.js
r387 r389 11 11 'dijit/form/Button', 12 12 'dijit/form/ComboBox', 13 ' rft/store',14 ' rft/ui/CategoryListView',13 '../store', 14 './lists/CategoryListView', 15 15 'dojo/text!./templates/QuestionEditorToolkit.html' 16 16 ], function(declare, lang, Source, domConstruct, Memory, _Container, _TemplatedMixin, _WidgetBase, _WidgetsInTemplateMixin, Button, ComboBox, store, CategoryListView, template) { … … 107 107 this.inputsSource.insertNodes(false, this._inputsItems); 108 108 }, 109 loadQuestion: function(question) {109 _setValueAttr: function(question) { 110 110 this.propertiesForm.set('value', question); 111 111 this._categories = question.categories; … … 113 113 this._setupCategories(); 114 114 this._setupTopic(question.topic); 115 }, 116 _getValueAttr: function() { 117 var value = this.propertiesForm.get('value'); 118 value.categories = this._categories; 119 return value; 115 120 }, 116 121 onCategoryAdd: function() { … … 134 139 node = w.domNode; 135 140 } 136 return {node: node, data: item , type: ["questionContent"]};141 return {node: node, data: item.content, type: ["questionContent"]}; 137 142 }, 138 143 _setupListView: function() {
Note: See TracChangeset
for help on using the changeset viewer.