|
|
@@ -31,7 +31,7 @@ Ext.define('saas.view.core.tab.Controller', {
|
|
|
|
|
|
if (me.fireEvent('beforeclose', me) !== false) {
|
|
|
if (me.tabBar) {
|
|
|
- if(typeof tabView.isDirty == 'function' && tabView.isDirty()) {
|
|
|
+ if(tabView.closeConfirm && tabView.isDirty()) {
|
|
|
showConfirm('提示', '表单数据有修改,确定要退出吗?')
|
|
|
.then(function(yes) {
|
|
|
if(yes == 'yes') {
|
|
|
@@ -46,7 +46,7 @@ Ext.define('saas.view.core.tab.Controller', {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- if(typeof tabView.isDirty == 'function' && tabView.isDirty()) {
|
|
|
+ if(tabView.closeConfirm == 'function' && tabView.isDirty()) {
|
|
|
showConfirm('提示', '表单数据有修改,确定要退出吗?')
|
|
|
.then(function(yes) {
|
|
|
if(yes == 'yes') {
|