Pman.Dialog.AdminCoreEnum.bjs
[Pman.Admin] / Pman.Dialog.AdminCoreEnum.js
index 6370ccb..b71be1b 100644 (file)
@@ -44,8 +44,10 @@ Pman.Dialog.AdminCoreEnum = {
                     _this.grid.footer.onClick('first');
                 }
             },
+            closable : false,
             height : 400,
             modal : true,
+            resizable : false,
             title : "Pulldown Options",
             width : 950,
             items : [
@@ -341,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.getAt(sel[0]);
                                _this.callback(rec.data);
                            }
                            _this.dialog.hide();