Attachment.min.js 1.0 KB

1
  1. MWF.xApplication.cms.FormDesigner.Module=MWF.xApplication.cms.FormDesigner.Module||{};MWF.xDesktop.requireApp("process.FormDesigner","Module.Attachment",null,false);MWF.xApplication.cms.FormDesigner.Module.Attachment=MWF.CMSFCAttachment=new Class({Extends:MWF.FCAttachment,Implements:[MWF.CMSFCMI],options:{style:"default",propertyPath:"/x_component_cms_FormDesigner/Module/Attachment/attachment.html"},_setEditStyle_custom:function(t){if(t=="size"){if(this.json[t]=="min"){this.attachmentController.changeControllerSizeToMin()}else{this.attachmentController.changeControllerSizeToMax()}}else if(t=="toolbarGroupHidden"){this.attachmentController.resetToolbarGroupHidden(this.json[t])}},loadAttachmentController:function(){MWF.xDesktop.requireApp("cms.FormDesigner","widget.AttachmentController",null,false);this.attachmentController=new MWF.xApplication.cms.FormDesigner.widget.AttachmentController(this.node,this,{readonly:true,size:this.json.size,toolbarGroupHidden:this.json.toolbarGroupHidden||[]});this.attachmentController.load()}});