提交 9d2daee5 编写于 作者: 蔡祥熠

Merge branch 'fix/cms.publis_refresh_parent' into 'wrdp'

Merge of fix/cms.publis_refresh_parent 修复独立窗口中内容管理发布后未刷新列表页的问题 to wrdp

See merge request o2oa/o2oa!2387
......@@ -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;
this.app.desktop.openApplication(el, "cms.Document", options);
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.
先完成此消息的编辑!
想要评论请 注册