Pman.Dialog.AdminCoreEnum.bjs
[Pman.Admin] / Pman.Dialog.AdminCoreEnum.js
index bed1c4c..08292b9 100644 (file)
@@ -32,7 +32,7 @@ Pman.Dialog.AdminCoreEnum = {
             xns: Roo,
             height : 400,
             title : "Pulldown Options",
-            width : 500,
+            width : 950,
             items : [
                 {
                     xtype: 'GridPanel',
@@ -41,13 +41,13 @@ Pman.Dialog.AdminCoreEnum = {
                         activate : function() {
                             _this.panel = this;
                             if (_this.grid) {
-                                _this.grid.footer.onClick('first');
+                             //   _this.grid.footer.onClick('first');
                             }
                         }
                     },
                     background : false,
-                    fitContainer : false,
-                    fitToframe : false,
+                    fitContainer : true,
+                    fitToframe : true,
                     region : 'center',
                     tableName : 'core_enum',
                     title : "Pulldown Options",
@@ -60,7 +60,7 @@ Pman.Dialog.AdminCoreEnum = {
                                 _this.grid = this; 
                                 //_this.dialog = Pman.Dialog.FILL_IN
                                 if (_this.panel.active) {
-                                   this.footer.onClick('first');
+                               //    this.footer.onClick('first');
                                 }
                             },
                             afteredit : function (e)
@@ -178,23 +178,7 @@ Pman.Dialog.AdminCoreEnum = {
                             pageSize : 25,
                             displayInfo : true,
                             displayMsg : "Displaying core_enum{0} - {1} of {2}",
-                            emptyMsg : "No core_enum found",
-                            items : [
-                                {
-                                    xtype: 'Button',
-                                    xns: Roo.Toolbar,
-                                    listeners : {
-                                        click : function (_self, e)
-                                        {
-                                            new Pman.Download({
-                                                grid : _this.grid
-                                            });
-                                            Roo.MessageBox.alert("Downloading", "File is downloading");
-                                        }
-                                    },
-                                    text : "Download"
-                                }
-                            ]
+                            emptyMsg : "No core_enum found"
                         },
                         toolbar : {
                             xtype: 'Toolbar',
@@ -465,7 +449,14 @@ Pman.Dialog.AdminCoreEnum = {
             center : {
                 xtype: 'LayoutRegion',
                 xns: Roo
-            }
+            },
+            buttons : [
+                {
+                    xtype: 'Button',
+                    xns: Roo,
+                    text : "OK"
+                }
+            ]
         });
     }
 };