提交 f6d08e29 编写于 作者: U unknown

内容管理表单预加载样式

上级 1a63b0e8
......@@ -40,6 +40,7 @@
MWF.require("MWF.xDesktop.Actions.RestActions", null, false);
(function(){
layout.load = function(){
debugger;
// if (this.isAuthentication()){
var preview = window.frameElement.retrieve("preview");
layout.desktop = window.frameElement.ownerDocument.window.layout.desktop;
......@@ -54,6 +55,9 @@
"addEvent" : function(){}
};
MWF.getJSON("res/preview/cmsdoc.json", function(data){
if( preview.form && preview.form.designer && preview.form.designer.application && preview.form.designer.application.id ){
data.document.appId = preview.form.designer.application.id;
}
layout.appForm.businessData = {
"data": data.data,
"document": data.document,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册