Pman.Dialog.CoreAutoSavePreview.bjs
authorEdward <edward@roojs.com>
Thu, 8 May 2014 09:29:37 +0000 (17:29 +0800)
committerEdward <edward@roojs.com>
Thu, 8 May 2014 09:29:37 +0000 (17:29 +0800)
Pman.Dialog.CoreAutoSavePreview.js

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

index cdd97bd..9c98fe4 100644 (file)
                     "|xns": "Roo",
                     "items": [
                         {
-                            "*prop": "grid",
-                            "xtype": "Grid",
-                            "autoExpandColumn": "filename",
-                            "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}",
-                                "|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"
+                                "|rowdblclick": "function (_self, rowIndex, e)\n{\n\n}\n"
                             },
+                            "*prop": "grid",
+                            "autoExpandColumn": "filename",
+                            "loadMask": true,
+                            "xtype": "Grid",
                             "|xns": "Roo.grid",
                             "items": [
                                 {
index 69bccc2..8513919 100644 (file)
@@ -59,8 +59,6 @@ Pman.Dialog.CoreAutoSavePreview = {
                     grid : {
                         xtype: 'Grid',
                         xns: Roo.grid,
-                        autoExpandColumn : 'filename',
-                        loadMask : true,
                         listeners : {
                             render : function() 
                             {
@@ -72,12 +70,11 @@ Pman.Dialog.CoreAutoSavePreview = {
                             },
                             rowdblclick : function (_self, rowIndex, e)
                             {
-                                if (!_this.dialog) return;
-                                _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
-                                    _this.grid.footer.onClick('first');
-                                }); 
+                            
                             }
                         },
+                        autoExpandColumn : 'filename',
+                        loadMask : true,
                         dataSource : {
                             xtype: 'Store',
                             xns: Roo.data,