Pman.Dialog.AdminCoreEnum.bjs
[Pman.Admin] / Pman.Dialog.AdminCoreEnum.js
index 78ef868..ba58d14 100644 (file)
@@ -138,7 +138,7 @@ Pman.Dialog.AdminCoreEnum = {
                                         params : {
                                             id : record.data.id,
                                             etype : _this.data.etype,
-                                            name : record.data.name,
+                                            name :  name,
                                             active : record.data.active,
                                             seqid : record.data.seqid,
                                             display_name : record.data.display_name
@@ -343,12 +343,14 @@ Pman.Dialog.AdminCoreEnum = {
                         click : function (_self, e)
                         {
                             var sel = _this.grid.selModel.getSelectedCell();
-                            if (!sel) {
-                                Roo.MesssageBox.alert("Error", "Select an item");
+                            if (!sel && _this.callback) {
+                                Roo.MessageBox.alert("Error", "Select an item");
                                 return;
                             }
-                            var rec = _this.grid.getAt(sel[0]);
+                            
+                        
                             if (_this.callback) {
+                                var rec = _this.grid.ds.getAt(sel[0]);
                                _this.callback(rec.data);
                            }
                            _this.dialog.hide();