remove debugging code
[roojs1] / Roo / grid / EditorGrid.js
index 2000807..5f24699 100644 (file)
@@ -117,7 +117,7 @@ Roo.extend(Roo.grid.EditorGrid, Roo.grid.Grid, {
             cancel:false,
             editor: ed
         };
-        var cell = Roo.get(this.view.getCell(row,col))
+        var cell = Roo.get(this.view.getCell(ed.row,ed.col));
         cell.show();
           
         if(String(value) !== String(startValue)){
@@ -151,7 +151,7 @@ Roo.extend(Roo.grid.EditorGrid, Roo.grid.Grid, {
           
             var r = this.dataSource.getAt(row);
             var field = this.colModel.getDataIndex(col);
-            var cell = Roo.get(this.view.getCell(row,col))
+            var cell = Roo.get(this.view.getCell(row,col));
             var e = {
                 grid: this,
                 record: r,
@@ -203,5 +203,15 @@ Roo.extend(Roo.grid.EditorGrid, Roo.grid.Grid, {
             this.activeEditor.completeEdit();
         }
         this.activeEditor = null;
+    },
+       
+        /**
+     * Called to get grid's drag proxy text, by default returns this.ddText.
+     * @return {String}
+     */
+    getDragDropText : function(){
+        var count = this.selModel.getSelectedCell() ? 1 : 0;
+        return String.format(this.ddText, count, count == 1 ? '' : 's');
     }
+       
 });
\ No newline at end of file