From aeba6dc738a351ab824b034b768746c12558b7ed Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 14 Nov 2012 13:57:57 +0800 Subject: [PATCH] Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- Pman.Dialog.CoreNotifyRecur.bjs | 2 +- Pman.Dialog.CoreNotifyRecur.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index 65625919..468098eb 100644 --- a/Pman.Dialog.CoreNotifyRecur.bjs +++ b/Pman.Dialog.CoreNotifyRecur.bjs @@ -116,7 +116,7 @@ "header": "From", "width": 75, "xtype": "ColumnModel", - "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }", + "|renderer": "function(v,x,r) {\n return String.format('{0}', r.data.method_id_display_name); \n }", "|xns": "Roo.grid", "items": [ { diff --git a/Pman.Dialog.CoreNotifyRecur.js b/Pman.Dialog.CoreNotifyRecur.js index 42ba457d..a526efb1 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -281,7 +281,9 @@ Pman.Dialog.CoreNotifyRecur = { dataIndex : 'method_id', header : 'From', width : 75, - renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }, + renderer : function(v,x,r) { + return String.format('{0}', r.data.method_id_display_name); + }, editor : { xtype: 'GridEditor', xns: Roo.grid, -- 2.39.2