X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=257bcc48dca6d05ffd91cf1c9e0e7ce185cf0365;hb=e48ce1c5e71b3d18391128ea45810effc0d036b0;hp=a99790444e998d517480b0228367af82bf0137a3;hpb=d0b79e9bda4e08f7240e8c824bfc643d4f16b78e;p=roojs1 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();