sync
[Pman.Admin] / Pman.Tab.AdminEnum.js
index c3d2f55..314c952 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,15 +647,16 @@ Pman.Tab.AdminEnum = new Roo.XComponent({
           listeners : {
            click : function()
             {
+            
                 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');
                 });