Pman.Dialog.AdminEnumImages.bjs
authorChris <chris@roojs.com>
Thu, 4 Jul 2013 10:45:17 +0000 (18:45 +0800)
committerChris <chris@roojs.com>
Thu, 4 Jul 2013 10:45:17 +0000 (18:45 +0800)
Pman.Dialog.AdminEnumImages.js

Pman.Dialog.AdminEnumImages.bjs
Pman.Dialog.AdminEnumImages.js

index 258e175..ac11dd6 100644 (file)
                     "|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": [
                                 {
index 7ae0104..2429f34 100644 (file)
@@ -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,