From: Alan Knowles Date: Thu, 18 Mar 2021 08:47:02 +0000 (+0800) Subject: Changed docs/src/Roo_grid_GridDragZone.js.html X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=ce99697290d5986b18eb3b27e580b33408281696 Changed docs/src/Roo_grid_GridDragZone.js.html --- diff --git a/docs/src/Roo_grid_GridDragZone.js.html b/docs/src/Roo_grid_GridDragZone.js.html index bc8fbd46f2..ce7680fa34 100644 --- a/docs/src/Roo_grid_GridDragZone.js.html +++ b/docs/src/Roo_grid_GridDragZone.js.html @@ -44,7 +44,12 @@ } } + 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.. @@ -65,14 +70,14 @@ 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();