fitContainer : true,
fitToframe : true,
region : 'center',
- tableName : 'crm_mailing_list_message',
- title : "crm_mailing_list_message",
+ tableName : 'core_mailing_list_message',
+ title : "core_mailing_list_message",
grid : {
xtype: 'Grid',
xns: Roo.grid,
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');
});
},
xtype: 'HttpProxy',
xns: Roo.data,
method : 'GET',
- url : baseURL + '/Roo/Crm_mailing_list_message.php'
+ url : baseURL + '/Roo/Core_mailing_list_message.php'
},
reader : {
xtype: 'JsonReader',
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');
});
}
listeners : {
click : function()
{
- Pman.genericDelete(_this, 'crm_mailing_list_message');
+ Pman.genericDelete(_this, 'core_mailing_list_message');
}
},
xtype: 'HttpProxy',
xns: Roo.data,
method : 'GET',
- url : baseURL+'/Roo/crm_mailing_list_message.php'
+ url : baseURL+'/Roo/Core_mailing_list_message.php'
},
reader : {
xtype: 'JsonReader',