|
|
@@ -15,13 +15,11 @@ Ext.define('saas.view.core.tab.Controller', {
|
|
|
};
|
|
|
Ext.apply(view, viewConfig);
|
|
|
|
|
|
- tab.tabView = tab.add(view);
|
|
|
+ tab.add(view);
|
|
|
},
|
|
|
|
|
|
- onTabChange: function(component) {
|
|
|
- var me = this,
|
|
|
- tabPanel = me.getView(),
|
|
|
- tabView = tabPanel.tabView;
|
|
|
+ onTabActivate: function(component) {
|
|
|
+ var tabView = component.down('panel');
|
|
|
|
|
|
if(typeof tabView.refresh == 'function') {
|
|
|
tabView.refresh();
|
|
|
@@ -29,7 +27,8 @@ Ext.define('saas.view.core.tab.Controller', {
|
|
|
|
|
|
if(!component.resetCloseClick) {
|
|
|
component.tab.onCloseClick = function() {
|
|
|
- var me = this;
|
|
|
+ var me = this,
|
|
|
+ tabView = component.down('panel');
|
|
|
|
|
|
if (me.fireEvent('beforeclose', me) !== false) {
|
|
|
if (me.tabBar) {
|