Pman.Dialog.CoreAutoSavePreview.bjs
authorEdward <edward@roojs.com>
Thu, 8 May 2014 08:59:07 +0000 (16:59 +0800)
committerEdward <edward@roojs.com>
Thu, 8 May 2014 08:59:07 +0000 (16:59 +0800)
Pman.Dialog.CoreAutoSavePreview.js

Pman.Dialog.CoreAutoSavePreview.bjs
Pman.Dialog.CoreAutoSavePreview.js

index 1593c0a..eb24050 100644 (file)
                                     "|renderer": "function(v) { return v ? v.dateFormat('d/m/Y H:i') : ''; }",
                                     "|xns": "Roo.grid"
                                 },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "id",
-                                    "header": "#id",
-                                    "width": 100,
-                                    "xtype": "ColumnModel",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "person_id_name",
-                                    "header": "Staff",
-                                    "width": 150,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) { \n    \n    var efield = typeof(_this.email_field) == 'undefined' ? 'person_id_email' : _this.email_field;\n    var nfield = typeof(_this.name_field) == 'undefined' ? 'person_id_name' : _this.name_field;    \n    \n    Roo.log([r, efield, nfield]);\n    \n    var email = r.json[efield]; // ? r.data.person_id_email : r.data.person_id_email;\n    var name  = r.json[nfield]; // ? r.data.person_id_name : r.data.person_id_name;    \n    return String.format('{0} &lt;<a href=\"mailto:{1}\">{1}</a>&gt;', \n        name, email); \n\n\n}",
-                                    "|xns": "Roo.grid"
-                                },
                                 {
                                     "xtype": "ColumnModel",
                                     "header": "Action",
index cdcfa35..bd2f117 100644 (file)
@@ -1128,34 +1128,6 @@ Pman.Dialog.CoreAutoSavePreview = {
                                 width : 100,
                                 renderer : function(v) { return v ? v.dateFormat('d/m/Y H:i') : ''; }
                             },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'id',
-                                header : '#id',
-                                width : 100
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'person_id_name',
-                                header : 'Staff',
-                                width : 150,
-                                renderer : function(v,x,r) { 
-                                    
-                                    var efield = typeof(_this.email_field) == 'undefined' ? 'person_id_email' : _this.email_field;
-                                    var nfield = typeof(_this.name_field) == 'undefined' ? 'person_id_name' : _this.name_field;    
-                                    
-                                    Roo.log([r, efield, nfield]);
-                                    
-                                    var email = r.json[efield]; // ? r.data.person_id_email : r.data.person_id_email;
-                                    var name  = r.json[nfield]; // ? r.data.person_id_name : r.data.person_id_name;    
-                                    return String.format('{0} &lt;<a href="mailto:{1}">{1}</a>&gt;', 
-                                        name, email); 
-                                
-                                
-                                }
-                            },
                             {
                                 xtype: 'ColumnModel',
                                 xns: Roo.grid,