Pman.Dialog.AdminCoreEnum.bjs
[Pman.Admin] / Pman.Dialog.AdminCoreEnum.js
index 479f322..6370ccb 100644 (file)
@@ -41,9 +41,11 @@ Pman.Dialog.AdminCoreEnum = {
                     }
                     
                   _this.grid.colModel.setHidden(1,name_hidden);
+                    _this.grid.footer.onClick('first');
                 }
             },
             height : 400,
+            modal : true,
             title : "Pulldown Options",
             width : 950,
             items : [
@@ -335,6 +337,21 @@ Pman.Dialog.AdminCoreEnum = {
                 {
                     xtype: 'Button',
                     xns: Roo,
+                    listeners : {
+                        click : function (_self, e)
+                        {
+                            var sel = _this.grid.selModel.getSelectedCell();
+                            if (!sel) {
+                                Roo.MesssageBox.alert("Error", "Select an item");
+                                return;
+                            }
+                            var rec = _this.grid.getAt(sel[0]);
+                            if (_this.callback) {
+                               _this.callback(rec.data);
+                           }
+                           _this.dialog.hide();
+                        }
+                    },
                     text : "OK"
                 }
             ]