dbgenerate.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 6 Sep 2010 08:10:53 +0000 (16:10 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 6 Sep 2010 08:10:53 +0000 (16:10 +0800)
dbgenerate.js

index 5efb7dd..6f09652 100644 (file)
@@ -505,15 +505,7 @@ readers.forEach(function(reader) {
             "background": true,
             "region" : 'center',
             "listeners": {
-                "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}",
-                "|rowdblclick": "function (_self, rowIndex, e)\n" + 
-                    "{\n" + 
-                    "    if (!_this.dialog) return;\n" + 
-                    "    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n" + 
-                    "        _this.grid.footer.onClick('first');\n" + 
-                    "    }); \n" + 
-                    "}\n"
-                
+                "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
             },
             "items": [
                 {
@@ -529,7 +521,14 @@ readers.forEach(function(reader) {
                             "    if (_this.panel.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), function() {\n" + 
+                            "        _this.grid.footer.onClick('first');\n" + 
+                            "    }); \n" + 
+                            "}\n"
                     },
                     "|xns": "Roo.grid",