提交 d7522b08 编写于 作者: U unknown

内容管理加入Element

上级 808d62e7
......@@ -1476,6 +1476,15 @@ MWF.xApplication.cms.FormDesigner.Main = new Class({
recordStatus: function(){
return {"id": this.options.id};
},
clearNoDomModule: function(){
var _self = this;
this.confirm("warn", new Event(), MWF.APPFD.LP.clearNoDomModuleTitle, MWF.APPFD.LP.clearNoDomModuleContent, 460, 120, function(){
_self.form._clearNoDomModule();
this.close();
}, function(){
this.close();
});
},
onPostClose: function(){
if (this.pcForm){
MWF.release(this.pcForm.moduleList);
......
MWF.xApplication.cms.FormDesigner.Module = MWF.xApplication.cms.FormDesigner.Module || {};
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Elslider", null, false);
MWF.xApplication.cms.FormDesigner.Module.Elslider = MWF.CMSFCElswitch = new Class({
MWF.xApplication.cms.FormDesigner.Module.Elslider = MWF.CMSFCElslider = new Class({
Extends: MWF.FCElslider,
Implements : [MWF.CMSFCMI]
});
......@@ -234,12 +234,13 @@ MWF.xApplication.cms.FormDesigner.Module.Form = MWF.CMSFCForm = new Class({
}.bind(this), async);
}
},
showProperty: function(){
showProperty: function(callback){
if (!this.property){
this.property = new MWF.xApplication.cms.FormDesigner.Property(this, this.designer.propertyContentArea, this.designer, {
"path": this.options.propertyPath,
"onPostLoad": function(){
this.property.show();
if (callback) callback();
}.bind(this)
});
this.property.load();
......
......@@ -47,8 +47,10 @@ MWF.xApplication.process.FormDesigner.Property = MWF.FCProperty = new Class({
if (this.htmlString){
var lp;
if( this.options.appType === "cms" ) {
this.appType = "cms";
lp = MWF.xApplication.cms.FormDesigner.LP.propertyTemplate;
}else if( this.designer && this.designer.options && this.designer.options.name && this.designer.options.name.indexOf("cms") === 0 ){
this.appType = "cms";
lp = MWF.xApplication.cms.FormDesigner.LP.propertyTemplate;
}else{
lp = MWF.xApplication.process.FormDesigner.LP.propertyTemplate;
......@@ -2199,6 +2201,11 @@ MWF.xApplication.process.FormDesigner.Property = MWF.FCProperty = new Class({
//},
loadPropertyTab: function(){
var tabNodes = this.propertyContent.getElements(".MWFTab");
if( this.appType === "cms" ){
tabNodes = tabNodes.filter(function(node){
return node.get("title") !== MWF.xApplication.process.FormDesigner.LP.propertyTemplate.section;
})
}
var groupObject = {}; //data-group 属性可以表示不同的分组
if (tabNodes.length){
tabNodes.each( function(node){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册