X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=Pman.Tab.AdminEnum.js;h=35b08b034183bdbd1650c5c10e944e65666f3b7e;hp=6dcb074b53b8e21aed281dfddfe9b1d4bbae046f;hb=bf575978ba06a349009290558f0c7aebebf0555c;hpb=e0a8edb3dd2a02ff13134535ccaed1da81a1cc3c diff --git a/Pman.Tab.AdminEnum.js b/Pman.Tab.AdminEnum.js index 6dcb074..35b08b0 100644 --- a/Pman.Tab.AdminEnum.js +++ b/Pman.Tab.AdminEnum.js @@ -647,15 +647,14 @@ 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]); Pman.Dialog.AdminEnumMerge.show(d.data, function() {