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