提交 51b9c765 编写于 作者: U unknown

修复独立窗口中内容管理发布后未刷新列表页

上级 7ce550a8
......@@ -503,7 +503,24 @@ MWF.xApplication.cms.Index.Newer = new Class({
};
if( typeOf(this.options.autoSave) == "boolean" )options.autoSave = this.options.autoSave;
if( typeOf(this.options.saveOnClose) == "boolean" )options.saveOnClose = this.options.saveOnClose;
if( layout.inBrowser ){
debugger;
if( !window.o2RefreshCMSView ){
window.o2CreateCMSDocumentCount = ( window.o2CreateCMSDocumentCount || 0 ) + 1;
window.o2RefreshCMSView = function () {
try{
if(_self.view && _self.view.reload )_self.view.reload();
}catch (e) {}
if( window.o2CreateCMSDocumentCount )window.o2CreateCMSDocumentCount--;
if( !window.o2CreateCMSDocumentCount || window.o2CreateCMSDocumentCount<0 ){
window.o2RefreshCMSView = null;
}
}.bind(this)
}
this.app.desktop.openApplication(el, "cms.Document", options);
}else{
this.app.desktop.openApplication(el, "cms.Document", options);
}
}
},
_createProcessDocument:function(e){
......
......@@ -479,7 +479,13 @@ MWF.xApplication.cms.Xform.Form = MWF.CMSForm = new Class({
}
this.options.saveOnClose = false;
}
debugger;
if( layout.inBrowser ){
try{
if( window.opener && window.opener.o2RefreshCMSView ){
window.opener.o2RefreshCMSView();
}
}catch (e) {}
window.setTimeout(function () {
this.app.close();
}.bind(this), 1500)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册