Pman.Tab.AdminEnum.bjs
[Pman.Admin] / Pman.Tab.AdminEnum.js
index c3d2f55..6dcb074 100644 (file)
@@ -598,9 +598,11 @@ Pman.Tab.AdminEnum = new Roo.XComponent({
            click : function()
             {
                 var ids = [];
-                
-                var sc = _this.egrid.getSelectionModel().getSelectedCell();
-                console.log(sc);
+                _this.grid.dataSource.each(function(rr) {
+                    if (rr.selected) {
+                        ids.push(rr.data.id);
+                    }
+                });   
                 if (!ids.length) {
                     Roo.MessageBox.alert("Error", "Select rows by clicking on the Internal# column");
                     return;
@@ -645,13 +647,15 @@ 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() {