mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 10:16:16 +01:00
fix double open tab bug
This commit is contained in:
@@ -92,6 +92,8 @@ Ext.onReady(function(){
|
||||
|
||||
// adds a tab to main TabPanel
|
||||
function addTabPanel(id, xtype, title){
|
||||
var tab = mainTabPanel.findById( id );
|
||||
if ( tab == null ){
|
||||
mainTabPanel.add({
|
||||
id: id,
|
||||
xtype: xtype,
|
||||
@@ -99,6 +101,7 @@ Ext.onReady(function(){
|
||||
closable: true,
|
||||
autoScroll: true
|
||||
});
|
||||
}
|
||||
mainTabPanel.setActiveTab(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user