From: Alan Knowles Date: Wed, 14 Nov 2012 05:57:57 +0000 (+0800) Subject: Pman.Dialog.CoreNotifyRecur.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=aeba6dc738a351ab824b034b768746c12558b7ed Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- 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,