X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fgrid%2FGridDragZone.js;h=947f2d29e2feaeb77a34302b2d8d46ea28a485c4;hb=817dfb5976fc75dcf4ca4f33eecf00bebfa6fe77;hp=25de3995870444feba2d40797f4559183ede88ce;hpb=e527b1ee4dfb26e29a7b809454c04454eb884a6c;p=roojs1 diff --git a/Roo/grid/GridDragZone.js b/Roo/grid/GridDragZone.js index 25de399587..947f2d29e2 100644 --- a/Roo/grid/GridDragZone.js +++ b/Roo/grid/GridDragZone.js @@ -44,12 +44,13 @@ Roo.extend(Roo.grid.GridDragZone, Roo.dd.DragZone, { } } + if (sm.getSelections && sm.getSelections().length < 1) { + return false; + } - var sels = sm.getSelections ? sm.getSelections() : ( - sm.getSelectedCell() ? [ this.grid.ds.getAt(sm.getSelectedCell()[0]) ] : []); // before it used to all dragging of unseleted... - now we dont do that. - if(sels && sels.length){ + if(rowIndex){ // if editorgrid.. @@ -69,7 +70,8 @@ Roo.extend(Roo.grid.GridDragZone, Roo.dd.DragZone, { grid: this.grid, ddel: this.ddel, rowIndex: rowIndex, - selections: sels + selections: sm.getSelections ? sm.getSelections() : ( + sm.getSelectedCell() ? [ this.grid.ds.getAt(sm.getSelectedCell()[0]) ] : []) }; } return false;