|
|
@@ -1,6 +1,6 @@
|
|
|
var basePath = '';
|
|
|
|
|
|
-function openTab(xtype, title, id) {
|
|
|
+function openTab(xtype, title, id, config) {
|
|
|
var mainTab = Ext.getCmp('main-tab-panel');
|
|
|
var panel = Ext.getCmp(id);
|
|
|
if(!panel) {
|
|
|
@@ -9,6 +9,9 @@ function openTab(xtype, title, id) {
|
|
|
title: title,
|
|
|
viewType: xtype
|
|
|
});
|
|
|
+
|
|
|
+ Ext.apply(panel, config);
|
|
|
+
|
|
|
Ext.suspendLayouts();
|
|
|
mainTab.setActiveTab(mainTab.add(panel));
|
|
|
Ext.resumeLayouts(true);
|