fix bug in Sonia.rest.JsonStore

This commit is contained in:
Sebastian Sdorra
2011-05-24 17:59:00 +02:00
parent bccf290789
commit b454f540fb
2 changed files with 5 additions and 2 deletions

View File

@@ -199,7 +199,7 @@ Sonia.plugin.Store = Ext.extend(Sonia.rest.JsonStore, {
field: 'name'
}
};
Sonia.plugin.Store.superclass.constructor.call(this, Ext.apply(config, baseConfig));
Sonia.plugin.Store.superclass.constructor.call(this, Ext.apply(baseConfig, config));
}
});
@@ -246,6 +246,9 @@ Sonia.plugin.Grid = Ext.extend(Sonia.rest.Grid, {
};
Sonia.plugin.CenterInstance.addListener('changed', function(){
if (debug){
console.debug( 'receive change event, reload plugin store' );
}
this.getStore().reload();
}, this);

View File

@@ -62,7 +62,7 @@ Sonia.rest.JsonStore = Ext.extend( Ext.data.JsonStore, {
}
}
};
Sonia.rest.JsonStore.superclass.constructor.call(this, Ext.apply(config, baseConfig));
Sonia.rest.JsonStore.superclass.constructor.call(this, Ext.apply(baseConfig, config));
}
});