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);
_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'
});
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'
});
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,
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,