Changeset 316 for Dev/branches/rest-dojo-ui/client/rft/pages/questions.js
- Timestamp:
- 03/23/12 17:26:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/questions.js
r305 r316 10 10 this._store = store.getStore('Question'); 11 11 this._list = new AccordionList({ 12 store: this._store,13 12 actions: { 14 13 'Edit': lang.hitch(this,'_editQuestion') 15 14 }, 15 idProperty: this._store.idProperty, 16 16 categoryProperty: 'category', 17 17 titleProperty: 'title' … … 21 21 }, 22 22 _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 })); 24 27 }, 25 28 onNewQuestion: function() {
Note: See TracChangeset
for help on using the changeset viewer.