Pman.Dialog.AdminCoreEnum.bjs
[Pman.Admin] / Pman.Dialog.AdminCoreEnum.js
index e8230ab..bfeca57 100644 (file)
@@ -98,10 +98,8 @@ Pman.Dialog.AdminCoreEnum = {
                             listeners : {
                                 beforeload : function (_self, options)
                                 {
-                                    if (!_this.etypeCombo) {
-                                        return false;
-                                    }
-                                    options.params.etype = _this.etypeCombo.getValue();
+                                
+                                    options.params.etype = _this.data.etype;
                                     if (!options.params.etype.length) {
                                         return false;
                                     }
@@ -192,7 +190,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,6 +306,12 @@ Pman.Dialog.AdminCoreEnum = {
                 {
                     xtype: 'Button',
                     xns: Roo,
+                    listeners : {
+                        click : function (_self, e)
+                        {
+                          _this.dialog.hide();
+                        }
+                    },
                     text : "Cancel"
                 },
                 {