var CommonPutDataDialog=function(o,t){void 0==t&&alert("Dialog must defined"),this.opt=$.extend({dialogWidth:Math.min($(window).width(),940)+"px",dialogHeight:"90%",server:"/path/to/link/choose/dialog",link:"",callback:function(o){if(!o)return"";alert("选择了:"+o)}},o),window.__commonPutDataDialogLink=this.opt.link,this.dialog=t,this.runtime={dialog:null}};CommonPutDataDialog.prototype.show=function(){var o=this;window.__commonPutDataDialogItem=[],this.runtime.dialog=this.dialog.dialog(this.opt.server,{width:this.opt.dialogWidth,height:this.opt.dialogHeight,closeCallback:function(){window.__commonPutDataDialogItem.length&&o.opt.callback(window.__commonPutDataDialogItem)}})},CommonPutDataDialog.prototype.close=function(){this.dialog.dialogClose(this.runtime.dialog)},module.exports=CommonPutDataDialog;