MWF.xApplication.TeamWork = MWF.xApplication.TeamWork || {}; MWF.xDesktop.requireApp("Template", "MPopupForm", null, false); MWF.require("MWF.widget.ImageClipper", null, false); MWF.xApplication.TeamWork.UploadImage = new Class({ Extends: MPopupForm, Implements: [Options, Events], options: { "style": "default", "width": "660", "height": "520", "hasTop": true, "hasIcon": false, "hasTopIcon" : false, "hasTopContent" : true, "hasBottom": true, "title": "上传封面", "draggable": true, "closeAction": true, "toMain" : true, "documentId" : "" }, initialize: function (explorer, data, options, para) { this.setOptions(options); this.explorer = explorer; if( para ){ if( this.options.relativeToApp ){ this.app = para.app || this.explorer.app; this.container = para.container || this.app.content; this.lp = para.lp || this.explorer.lp || this.app.lp; this.css = para.css || this.explorer.css || this.app.css; this.actions = para.actions || this.explorer.actions || this.app.actions || this.app.restActions; }else{ this.container = para.container; this.lp = para.lp || this.explorer.lp; this.css = para.css || this.explorer.css; this.actions = para.actions || this.explorer.actions; } }else{ if( this.options.relativeToApp ){ this.app = this.explorer.app; this.container = this.app.content; this.lp = this.explorer.lp || this.app.lp; this.css = this.explorer.css || this.app.css; this.actions = this.explorer.actions || this.app.actions || this.app.restActions; }else{ this.container = window.document.body; this.lp = this.explorer.lp; this.css = this.explorer.css; this.actions = this.explorer.actions; } } this.data = data || {}; this.rootActions = this.app.rootActions; this.css = {}; this.cssPath = "/x_component_TeamWork/$UploadImage/"+this.options.style+"/css.wcss"; this.load(); this.lp = this.app.lp.uploadImage }, _createTableContent: function () { this.actions = MWF.Actions.get("x_file_assemble_control"); // this.actions.getHotPic("CMS", this.options.documentId , function( json ){ // if( json.data && json.data.length > 0 ){ // this.isNew = false; // }else{ // this.isNew = true; // } // this.hotPicData = (json.data && json.data.length > 0) ? json.data[0] : {}; var html = "
| " + " | " + " |
| " + " | " + " |
| " + //" | " + //" |