},
listeners: {
write: function(store, operation){
- var record = operation.records[0],
+ var record = operation.getRecords()[0],
name = Ext.String.capitalize(operation.action),
verb;
+
if (name == 'Destroy') {
+ record = operation.records[0];
verb = 'Destroyed';
} else {
verb = name + 'd';
text: 'ID',
width: 40,
sortable: true,
- dataIndex: 'id',
- renderer: function(v){
- if (Ext.isEmpty(v)) {
- v = ' ';
- }
- return v;
- }
+ dataIndex: 'id'
}, {
text: 'Email',
flex: 1,