user getGrid instead on Ext.getCmp

This commit is contained in:
Sebastian Sdorra
2011-11-19 17:01:20 +01:00
parent 26b4382b5e
commit 209ceec023

View File

@@ -160,7 +160,7 @@ Sonia.user.Panel = Ext.extend(Sonia.rest.Panel, {
},
reload: function(){
Ext.getCmp('userGrid').reload();
this.getGrid().reload();
}
});
@@ -190,7 +190,7 @@ Sonia.History.register('userPanel', {
panel = Ext.getCmp('users');
if ( userId ){
var selected = false;
panel.getGrid().getStore().addListener('load', function(store){
panel.getGrid().getStore().addListener('load', function(){
if (!selected){
panel.getGrid().selectById(userId);
selected = true;