提交 ba0a09c6 编写于 作者: U unknown

修复创建数据表格失败的问题

上级 e6dde480
......@@ -377,7 +377,8 @@ MWF.xApplication.portal.PageDesigner.Module.Page = MWF.PCPage = new Class({
if (this.dataTemplate[className]){
if (callback) callback(this.dataTemplate[className]);
}else{
var templateUrl = (MWF["PC"+className].templateJsonPath || "../x_component_portal_PageDesigner/Module/")+className+"/template.json";
var modulePath = ( MWF["PC"+className] && MWF["PC"+className].templateJsonPath ) || "../x_component_portal_PageDesigner/Module/";
var templateUrl = modulePath + className+"/template.json";
MWF.getJSON(templateUrl, function(responseJSON, responseText){
this.dataTemplate[className] = responseJSON;
if (callback) callback(responseJSON);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册