Pman.Tab.XtupleCurrency.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 10:38:47 +0000 (18:38 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 10:38:47 +0000 (18:38 +0800)
Pman.Tab.XtupleCurrency.js

Pman.Tab.XtupleCurrency.bjs
Pman.Tab.XtupleCurrency.js

index 8d632df..dc84cef 100644 (file)
                             "|xns": "Roo",
                             "items": [
                                 {
-                                    "*prop": "grid",
-                                    "xtype": "Grid",
-                                    "autoExpandColumn": "",
-                                    "loadMask": true,
                                     "listeners": {
-                                        "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
+                                        "|render": "function() \n{\n    _this.rgrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.rpanel.active) {\n       this.footer.onClick('first');\n    }\n}",
                                         "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
                                     },
+                                    "*prop": "grid",
+                                    "autoExpandColumn": "",
+                                    "loadMask": true,
+                                    "xtype": "Grid",
                                     "|xns": "Roo.grid",
                                     "items": [
                                         {
index 63cb6b4..fb88ca0 100644 (file)
@@ -230,14 +230,12 @@ Pman.Tab.XtupleCurrency = new Roo.XComponent({
                         grid : {
                             xtype: 'Grid',
                             xns: Roo.grid,
-                            autoExpandColumn : '',
-                            loadMask : true,
                             listeners : {
                                 render : function() 
                                 {
-                                    _this.grid = this; 
+                                    _this.rgrid = this; 
                                     //_this.dialog = Pman.Dialog.FILL_IN
-                                    if (_this.panel.active) {
+                                    if (_this.rpanel.active) {
                                        this.footer.onClick('first');
                                     }
                                 },
@@ -249,6 +247,8 @@ Pman.Tab.XtupleCurrency = new Roo.XComponent({
                                     }); 
                                 }
                             },
+                            autoExpandColumn : '',
+                            loadMask : true,
                             dataSource : {
                                 xtype: 'Store',
                                 xns: Roo.data,