From 31ad15d6ecbbadb76c443c0bcf24835223238a7e Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 8 May 2014 17:29:37 +0800 Subject: [PATCH] Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- Pman.Dialog.CoreAutoSavePreview.bjs | 10 +++++----- Pman.Dialog.CoreAutoSavePreview.js | 9 +++------ 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/Pman.Dialog.CoreAutoSavePreview.bjs b/Pman.Dialog.CoreAutoSavePreview.bjs index cdd97bde..9c98fe46 100644 --- a/Pman.Dialog.CoreAutoSavePreview.bjs +++ b/Pman.Dialog.CoreAutoSavePreview.bjs @@ -43,14 +43,14 @@ "|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": [ { diff --git a/Pman.Dialog.CoreAutoSavePreview.js b/Pman.Dialog.CoreAutoSavePreview.js index 69bccc2f..8513919d 100644 --- a/Pman.Dialog.CoreAutoSavePreview.js +++ b/Pman.Dialog.CoreAutoSavePreview.js @@ -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, -- 2.39.2