mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-19 22:12:10 +01:00
fix onChange method with closed group panel
This commit is contained in:
@@ -181,16 +181,25 @@ Sonia.History.register('groupPanel', {
|
||||
return token;
|
||||
},
|
||||
|
||||
onChange: function(repoId){
|
||||
onChange: function(groupId){
|
||||
var panel = Ext.getCmp('groups');
|
||||
if ( ! panel ){
|
||||
main.addGroupsTabPanel();
|
||||
panel = Ext.getCmp('groups');
|
||||
if (groupId){
|
||||
var selected = false;
|
||||
panel.getGrid().getStore().addListener('load', function(){
|
||||
if (!selected){
|
||||
panel.getGrid().selectById(groupId);
|
||||
selected = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
main.addTab(panel);
|
||||
}
|
||||
if (repoId){
|
||||
panel.getGrid().selectById(repoId);
|
||||
if (groupId){
|
||||
panel.getGrid().selectById(groupId);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user