X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=Pman.Tab.AdminEnum.js;h=314c9520fc46e3caf6d5975575b90650b916a590;hp=079c69fc0fe55ab4bb67bb73555c932987df05e0;hb=HEAD;hpb=55c9f4fc59790a9f81ea81fed1d096b7b586cecf diff --git a/Pman.Tab.AdminEnum.js b/Pman.Tab.AdminEnum.js index 079c69f..314c952 100644 --- a/Pman.Tab.AdminEnum.js +++ b/Pman.Tab.AdminEnum.js @@ -647,16 +647,16 @@ Pman.Tab.AdminEnum = new Roo.XComponent({ listeners : { click : function() { - console.log(_this.grid.selModel.getSelectedCell); - var s = _this.grid.getSelectionModel().getSelections(); - + + var s = _this.grid.getSelectionModel().getSelectedCell(); + if (!s.length) { Roo.MessageBox.alert("Error", "Select a Row"); return; } var d = _this.grid.ds.getAt(s[0]); - + console.log(Pman.Dialog); Pman.Dialog.AdminEnumMerge.show(d.data, function() { _this.grid.footer.onClick('refresh'); });