Pman.Dialog.AdminCoreEnum.bjs
[Pman.Admin] / Pman.Dialog.AdminCoreEnum.js
index ef722a3..ea8bf64 100644 (file)
@@ -44,7 +44,9 @@ Pman.Dialog.AdminCoreEnum = {
                     _this.grid.footer.onClick('first');
                 }
             },
+            closable : false,
             height : 400,
+            modal : true,
             title : "Pulldown Options",
             width : 950,
             items : [
@@ -336,6 +338,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"
                 }
             ]