X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Dialog.CoreEmailPreview.js;fp=Pman.Dialog.CoreEmailPreview.js;h=5acb548cbdfb2fd4b822910ca140a766072f12cb;hb=d61a3580945f5e3acbee884d1ce43a336277b112;hp=c045eb0ebd429981c235d2087a86a38f14c8280c;hpb=f380fe2e72dc1c4d33801df173eac49df259d938;p=Pman.Core diff --git a/Pman.Dialog.CoreEmailPreview.js b/Pman.Dialog.CoreEmailPreview.js index c045eb0e..5acb548c 100644 --- a/Pman.Dialog.CoreEmailPreview.js +++ b/Pman.Dialog.CoreEmailPreview.js @@ -24,7 +24,7 @@ Pman.Dialog.CoreEmailPreview = { this.callback = cb; this.data = data; - this.dialog.show(this.data._el); + this.dialog.show.apply(this.dialog, Array.prototype.slice.call(arguments).slice(2)); if (this.form) { this.form.reset(); this.form.setValues(data); @@ -52,8 +52,12 @@ Pman.Dialog.CoreEmailPreview = { _this.panel.load({ url: baseURL + '/Core/MessagePreview', params : { - _id : _this.data.id, - _table : _this.data.module + _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' }); @@ -61,8 +65,12 @@ Pman.Dialog.CoreEmailPreview = { url: baseURL + '/Core/MessagePreview', params : { _as_html : 1, - _id : _this.data.id, - _table : _this.data.module + _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' }); @@ -98,11 +106,11 @@ Pman.Dialog.CoreEmailPreview = { fitContainer : true, fitToFrame : true, region : 'center', - title : _this._strings['4cd8413207629a963225f4314b53adcd'] /* Plain */, + title : _this._strings['4c4ad5fca2e7a3f74dbb1ced00381aa4'] /* HTML */, listeners : { render : function (_self) { - _this.panel = _self; + _this.hpanel = _self; } }, xns : Roo, @@ -113,11 +121,11 @@ Pman.Dialog.CoreEmailPreview = { fitContainer : true, fitToFrame : true, region : 'center', - title : _this._strings['4c4ad5fca2e7a3f74dbb1ced00381aa4'] /* HTML */, + title : _this._strings['4cd8413207629a963225f4314b53adcd'] /* Plain */, listeners : { render : function (_self) { - _this.hpanel = _self; + _this.panel = _self; } }, xns : Roo,