Pman.Dialog.CoreNotifyRefer.bjs
authorAlan Knowles <alan@akbkhome.com>
Wed, 16 May 2012 08:09:54 +0000 (16:09 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 16 May 2012 08:09:54 +0000 (16:09 +0800)
Pman.Dialog.CoreNotifyRefer.js

Pman.Dialog.CoreNotifyRefer.bjs
Pman.Dialog.CoreNotifyRefer.js

index a7b9141..3f3f2c9 100644 (file)
                                     "header": "at Hour(s)",
                                     "width": 250,
                                     "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
+                                    "|renderer": "function(v,x,r) { \n    \n    return String.format('{0}', r.data.freq_hour_name || v); \n    \n}",
                                     "|xns": "Roo.grid",
                                     "items": [
                                         {
index 242fe5f..de85b2e 100644 (file)
@@ -342,7 +342,11 @@ Pman.Dialog.CoreNotifyRefer = {
                                 dataIndex : 'freq_hour',
                                 header : 'at Hour(s)',
                                 width : 250,
-                                renderer : function(v) { return String.format('{0}', v); },
+                                renderer : function(v,x,r) { 
+                                    
+                                    return String.format('{0}', r.data.freq_hour_name || v); 
+                                    
+                                },
                                 editor : {
                                     xtype: 'GridEditor',
                                     xns: Roo.grid,