projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #6640 - Inspection Schedule
[roojs1]
/
Roo
/
grid
/
GridDragZone.js
diff --git
a/Roo/grid/GridDragZone.js
b/Roo/grid/GridDragZone.js
index
1a59661
..
70932cc
100644
(file)
--- a/
Roo/grid/GridDragZone.js
+++ b/
Roo/grid/GridDragZone.js
@@
-44,7
+44,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..
if(rowIndex !== false){
// if editorgrid..
@@
-65,14
+70,14
@@
Roo.extend(Roo.grid.GridDragZone, Roo.dd.DragZone, {
grid: this.grid,
ddel: this.ddel,
rowIndex: rowIndex,
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;
},
};
}
return false;
},
-
+
+
onInitDrag : function(e){
var data = this.dragData;
this.ddel.innerHTML = this.grid.getDragDropText();
onInitDrag : function(e){
var data = this.dragData;
this.ddel.innerHTML = this.grid.getDragDropText();