X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=Pman.Tab.AdminEnum.js;h=314c9520fc46e3caf6d5975575b90650b916a590;hp=39ef29bb4e8e5c6c14266851779e6ad8a399cc04;hb=HEAD;hpb=a9e259b4c9ca03ed66dd56ddcba865b4e6882dc3 diff --git a/Pman.Tab.AdminEnum.js b/Pman.Tab.AdminEnum.js index 39ef29b..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.getSelectionModel()); - var s = _this.grid.getSelectionModel().getSelected(); - + + 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'); });