fitContainer : true,
fitToframe : true,
region : 'center',
- tableName : 'core_mailing_list_message',
- title : "core_mailing_list_message",
+ tableName : 'core_email',
+ title : "core_email",
grid : {
xtype: 'Grid',
xns: Roo.grid,
render : function()
{
_this.grid = this;
- _this.dialog = Pman.Dialog.CoreMailingListMessage;
+ _this.dialog = Pman.Dialog.CoreEmail;
if (_this.panel.active) {
_this.grid.footer.onClick('first');
}
{
if (!_this.dialog) return;
var data = this.getDataSource().getAt(rowIndex).data;
- _this.dialog.show( {id : data.id, module : 'core'} , function() {
+ _this.dialog.show( {id : data.id, module : 'core_email'} , function() {
_this.grid.footer.onClick('first');
});
},
xtype: 'HttpProxy',
xns: Roo.data,
method : 'GET',
- url : baseURL + '/Roo/Core_mailing_list_message.php'
+ url : baseURL + '/Roo/Core_email.php'
},
reader : {
xtype: 'JsonReader',
xtype: 'PagingToolbar',
xns: Roo,
displayInfo : true,
- displayMsg : "Displaying Mailing List Message{0} - {1} of {2}",
- emptyMsg : "No Mailing List Message found",
+ displayMsg : "Displaying Message{0} - {1} of {2}",
+ emptyMsg : "Nothing found",
pageSize : 25
},
toolbar : {
return;
}
new Pman.Request({
- url : baseURL + '/Roo/Core_mailing_list_message',
+ url : baseURL + '/Roo/Core_email',
method : 'POST',
params : {
id : sel.data.id,
click : function()
{
if (!_this.dialog) return;
- _this.dialog.show( { id : 0, module : 'core' } , function() {
+ _this.dialog.show( { id : 0, module : 'core_email' } , function() {
_this.grid.footer.onClick('first');
});
}
listeners : {
click : function()
{
- Pman.genericDelete(_this, 'core_mailing_list_message');
+ Pman.genericDelete(_this, 'core_email');
}
},
xtype: 'HttpProxy',
xns: Roo.data,
method : 'GET',
- url : baseURL+'/Roo/Core_mailing_list_message.php'
+ url : baseURL+'/Roo/Core_email.php'
},
reader : {
xtype: 'JsonReader',