From: Chris Date: Thu, 4 Jul 2013 10:45:17 +0000 (+0800) Subject: Pman.Dialog.AdminEnumImages.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=e4be55f262159046ab1d63caaaef945d4eb867e6 Pman.Dialog.AdminEnumImages.bjs Pman.Dialog.AdminEnumImages.js --- diff --git a/Pman.Dialog.AdminEnumImages.bjs b/Pman.Dialog.AdminEnumImages.bjs index 258e175..ac11dd6 100644 --- a/Pman.Dialog.AdminEnumImages.bjs +++ b/Pman.Dialog.AdminEnumImages.bjs @@ -35,14 +35,14 @@ "|xns": "Roo", "items": [ { - "*prop": "grid", - "xtype": "Grid", - "autoExpandColumn": "title", - "loadMask": true, "listeners": { - "|render": "function() { \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 _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 \n var s = _self.getDataSource().getAt(rowIndex);\n Pman.Dialog.PressReleaseImage.show(s.data, function() {\n _this.grid.footer.onClick('first');\n }); \n}" }, + "*prop": "grid", + "autoExpandColumn": "title", + "loadMask": true, + "xtype": "Grid", "|xns": "Roo.grid", "items": [ { diff --git a/Pman.Dialog.AdminEnumImages.js b/Pman.Dialog.AdminEnumImages.js index 7ae0104..2429f34 100644 --- a/Pman.Dialog.AdminEnumImages.js +++ b/Pman.Dialog.AdminEnumImages.js @@ -61,15 +61,13 @@ Pman.Dialog.AdminEnumImages = { grid : { xtype: 'Grid', xns: Roo.grid, - autoExpandColumn : 'title', - loadMask : true, listeners : { render : function() { _this.grid = this; //_this.dialog = Pman.Dialog.FILL_IN - if (_this.panel.active) { - this.footer.onClick('first'); - } + //if (_this.panel.active) { + // this.footer.onClick('first'); + //} }, rowdblclick : function (_self, rowIndex, e) { @@ -80,6 +78,8 @@ Pman.Dialog.AdminEnumImages = { }); } }, + autoExpandColumn : 'title', + loadMask : true, dataSource : { xtype: 'Store', xns: Roo.data,