Ignore:
Timestamp:
03/23/12 17:26:55 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Mockup included.

File:
1 edited

Legend:

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

    r305 r316  
    1010                this._store = store.getStore('Question');
    1111                this._list = new AccordionList({
    12                     store: this._store,
    1312                    actions: {
    1413                        'Edit': lang.hitch(this,'_editQuestion')
    1514                    },
     15                    idProperty: this._store.idProperty,
    1616                    categoryProperty: 'category',
    1717                    titleProperty: 'title'
     
    2121            },
    2222            _refresh: function() {
    23                 this._list.refresh();
     23                Deferred.when(this._store.query())
     24                .then(lang.hitch(this,function(items){
     25                    this._list.setItems(items);
     26                }));
    2427            },
    2528            onNewQuestion: function() {
Note: See TracChangeset for help on using the changeset viewer.