Pman.Dialog.AdminCoreEnum.bjs
[Pman.Admin] / Pman.Dialog.AdminCoreEnum.js
index fd1f218..cb1bd9a 100644 (file)
@@ -192,7 +192,7 @@ Pman.Dialog.AdminCoreEnum = {
                                         {
                                             
                                             // if we do not have a selected type... - what should we show..?
-                                            var et = _this.etypeCombo.getValue();
+                                            var et = _this.data.etype;
                                             var ds = _this.grid.getDataSource();
                                             if (!et) {
                                                 Roo.MessageBox.alert("Error", "Select a pulldown");
@@ -308,7 +308,13 @@ Pman.Dialog.AdminCoreEnum = {
                 {
                     xtype: 'Button',
                     xns: Roo,
-                    text : "OK"
+                    listeners : {
+                        click : function (_self, e)
+                        {
+                          _this.dialog.hide();
+                        }
+                    },
+                    text : "Cancel"
                 },
                 {
                     xtype: 'Button',