mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 10:16:16 +01:00
improve Sonia.History.handleChange method
This commit is contained in:
@@ -285,13 +285,18 @@ Sonia.scm.Main = Ext.extend(Ext.util.Observable, {
|
||||
},
|
||||
|
||||
addTabPanel: function(id, xtype, title){
|
||||
if (!xtype){
|
||||
xtype = id;
|
||||
}
|
||||
var panel = {
|
||||
id: id,
|
||||
xtype: xtype,
|
||||
title: title,
|
||||
closable: true,
|
||||
autoScroll: true
|
||||
};
|
||||
if (title){
|
||||
panel.title = title;
|
||||
}
|
||||
this.addTab(panel);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user