Pman.Tab.MTrackTicket.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 25 Jun 2013 07:07:01 +0000 (15:07 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 25 Jun 2013 07:07:01 +0000 (15:07 +0800)
Pman.Tab.MTrackTicket.js

Pman.Tab.MTrackTicket.bjs
Pman.Tab.MTrackTicket.js

index 1224d5d..45b6ceb 100644 (file)
                                         },
                                         {
                                             "*prop": "colModel[]",
-                                            "dataIndex": "estimated",
+                                            "dataIndex": "spent",
                                             "header": "Hours",
                                             "width": 50,
                                             "xtype": "ColumnModel",
                                             "|renderer": "function(v,x,r) { \n    return String.format('{0}/{1}', r.data.spent, v); \n}",
-                                            "|xns": "Roo.grid",
-                                            "items": [
-                                                {
-                                                    "|xns": "Roo.grid",
-                                                    "xtype": "GridEditor",
-                                                    "*prop": "editor",
-                                                    "items": [
-                                                        {
-                                                            "*prop": "field",
-                                                            "allowDecimals": true,
-                                                            "decimalPrecision": 1,
-                                                            "xtype": "NumberField",
-                                                            "|xns": "Roo.form"
-                                                        }
-                                                    ]
-                                                }
-                                            ]
+                                            "|xns": "Roo.grid"
                                         },
                                         {
                                             "*prop": "colModel[]",
index b1f295c..cfe5a7f 100644 (file)
@@ -1581,21 +1581,11 @@ Pman.Tab.MTrackTicket = new Roo.XComponent({
                                 {
                                     xtype: 'ColumnModel',
                                     xns: Roo.grid,
-                                    dataIndex : 'estimated',
+                                    dataIndex : 'spent',
                                     header : 'Hours',
                                     width : 50,
                                     renderer : function(v,x,r) { 
                                         return String.format('{0}/{1}', r.data.spent, v); 
-                                    },
-                                    editor : {
-                                        xtype: 'GridEditor',
-                                        xns: Roo.grid,
-                                        field : {
-                                            xtype: 'NumberField',
-                                            xns: Roo.form,
-                                            allowDecimals : true,
-                                            decimalPrecision : 1
-                                        }
                                     }
                                 },
                                 {