render : function()
{
_this.grid = this;
- _this.dialog = Pman.Dialog.CrmMailingListMessage;
+ _this.dialog = Pman.Dialog.CoreMailingListMessage;
if (_this.panel.active) {
_this.grid.footer.onClick('first');
}
{
if (!_this.dialog) return;
var data = this.getDataSource().getAt(rowIndex).data;
- _this.dialog.show( data , function() {
+ _this.dialog.show( {id : data.id, module : 'core'} , function() {
_this.grid.footer.onClick('first');
});
},
listeners : {
click : function()
{
- var sel = _this.grid.selModel.getSelected()
+ var sel = _this.grid.selModel.getSelected();
if (!sel) {
Roo.MessageBox.alert("Error", "Select a message to copy");
return;
}
new Pman.Request({
- url : baseURL + '/Roo/Crm_mailing_list_message',
+ url : baseURL + '/Roo/Core_mailing_list_message',
method : 'POST',
params : {
id : sel.data.id,
click : function()
{
if (!_this.dialog) return;
- _this.dialog.show( { id : 0 } , function() {
+ _this.dialog.show( { id : 0, module : 'core' } , function() {
_this.grid.footer.onClick('first');
});
}