improve Sonia.History.handleChange method

This commit is contained in:
Sebastian Sdorra
2011-09-25 17:44:14 +02:00
parent 1907585c27
commit a5084c6d14
2 changed files with 16 additions and 3 deletions

View File

@@ -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);
},