X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-debug.js;h=257bcc48dca6d05ffd91cf1c9e0e7ce185cf0365;hp=a99790444e998d517480b0228367af82bf0137a3;hb=86b8de9b171833430cbdebcd05af0a1240f5832f;hpb=ce99697290d5986b18eb3b27e580b33408281696 diff --git a/roojs-debug.js b/roojs-debug.js index a99790444e..257bcc48dc 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -58026,7 +58026,12 @@ Roo.extend(Roo.grid.GridDragZone, Roo.dd.DragZone, { } } + if (sm.getSelections && sm.getSelections().length < 1) { + return false; + } + + // before it used to all dragging of unseleted... - now we dont do that. if(rowIndex !== false){ // if editorgrid.. @@ -58047,14 +58052,14 @@ Roo.extend(Roo.grid.GridDragZone, Roo.dd.DragZone, { grid: this.grid, ddel: this.ddel, rowIndex: rowIndex, - selections:sm.getSelections ? sm.getSelections() : ( - sm.getSelectedCell() ? [ this.grid.ds.getAt(sm.getSelectedCell()[0]) ] : [] - ) + selections: sm.getSelections ? sm.getSelections() : ( + sm.getSelectedCell() ? [ this.grid.ds.getAt(sm.getSelectedCell()[0]) ] : []) }; } return false; }, - + + onInitDrag : function(e){ var data = this.dragData; this.ddel.innerHTML = this.grid.getDragDropText();