X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=b700b80a2c546ef1874e89f980c2131af000a221;hb=f695d00dd4011297004bd419ba6c72be9e3ee505;hp=26193ca73d5648cfc9d95938eafb6851d87f1b78;hpb=817dfb5976fc75dcf4ca4f33eecf00bebfa6fe77;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index 26193ca73d..b700b80a2c 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -58026,12 +58026,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.. @@ -58051,7 +58052,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;