+ ],
+ "listeners" : {
+ "show" : [
+ "function (_self)",
+ "{",
+ " ",
+ " _self.layout.getRegion('center').showPanel(0);",
+ " _this.panel.load({ ",
+ " url: baseURL + '/Core/MessagePreview', ",
+ " params : {",
+ " _id : _this.data.id || '',",
+ " template_name : _this.data.template_name || '', ",
+ " _table : _this.data.module,",
+ " ontable : _this.data.ontable || '',",
+ " onid : _this.data.onid || '',",
+ " evtype : _this.data.evtype || ''",
+ " },",
+ " method : 'GET'",
+ " });",
+ " _this.hpanel.load({ ",
+ " url: baseURL + '/Core/MessagePreview', ",
+ " params : {",
+ " _as_html : 1,",
+ " _id : _this.data.id || '',",
+ " template_name : _this.data.template_name || '',",
+ " _table : _this.data.module,",
+ " ontable : _this.data.ontable || '',",
+ " onid : _this.data.onid || '',",
+ " evtype : _this.data.evtype || ''",
+ " },",
+ " method : 'GET'",
+ " });",
+ " ",
+ "}"
+ ]
+ },
+ "shadow" : true,
+ "title" : "Email Preview",
+ "width" : 1200,
+ "xtype" : "LayoutDialog"