use conditional request to improve performance

This commit is contained in:
Sebastian Sdorra
2011-02-13 16:31:02 +01:00
parent 74d4ac4722
commit b122b701a6
4 changed files with 114 additions and 7 deletions

View File

@@ -52,7 +52,10 @@ Sonia.group.Grid = Ext.extend(Sonia.rest.Grid, {
initComponent: function(){
var groupStore = new Sonia.rest.JsonStore({
url: restUrl + 'groups.json',
proxy: new Ext.data.HttpProxy({
url: restUrl + 'groups.json',
disableCaching: false
}),
fields: [ 'name', 'members', 'description', 'creationDate', 'type'],
sortInfo: {
field: 'name'