Ignore:
Timestamp:
08/06/12 17:39:05 (13 years ago)
Author:
hendrikvanantwerpen
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/ui/QuestionEditorToolkit.js

    r387 r389  
    1111    'dijit/form/Button',
    1212    'dijit/form/ComboBox',
    13     'rft/store',
    14     'rft/ui/CategoryListView',
     13    '../store',
     14    './lists/CategoryListView',
    1515    'dojo/text!./templates/QuestionEditorToolkit.html'
    1616    ], function(declare, lang, Source, domConstruct, Memory, _Container, _TemplatedMixin, _WidgetBase, _WidgetsInTemplateMixin, Button, ComboBox, store, CategoryListView, template) {
     
    107107                this.inputsSource.insertNodes(false, this._inputsItems);
    108108            },
    109             loadQuestion: function(question) {
     109            _setValueAttr: function(question) {
    110110                this.propertiesForm.set('value', question);
    111111                this._categories = question.categories;
     
    113113                this._setupCategories();
    114114                this._setupTopic(question.topic);
     115            },
     116            _getValueAttr: function() {
     117                var value = this.propertiesForm.get('value');
     118                value.categories = this._categories;
     119                return value;
    115120            },
    116121            onCategoryAdd: function() {
     
    134139                    node = w.domNode;
    135140                }
    136                 return {node: node, data: item, type: ["questionContent"]};
     141                return {node: node, data: item.content, type: ["questionContent"]};
    137142            },
    138143            _setupListView: function() {
Note: See TracChangeset for help on using the changeset viewer.