X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=Pman.Tab.AdminEnum.js;h=314c9520fc46e3caf6d5975575b90650b916a590;hp=d078657155bcb00a59b9d23cd0d9a11467116df5;hb=HEAD;hpb=40b76c510fedacbaacb7a1bedaa2cc0689f29623 diff --git a/Pman.Tab.AdminEnum.js b/Pman.Tab.AdminEnum.js index d078657..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() { - var s = []; - s.push(_this.grid.selModel.selection.record.id); - - if (s.length * 1 < 1) { + + 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(_this.grid.ds); + console.log(Pman.Dialog); Pman.Dialog.AdminEnumMerge.show(d.data, function() { _this.grid.footer.onClick('refresh'); });