projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e527b1e
)
Roo/grid/GridDragZone.js
author
Alan Knowles
<alan@roojs.com>
Wed, 17 Mar 2021 08:32:40 +0000
(16:32 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 17 Mar 2021 08:32:40 +0000
(16:32 +0800)
Roo/grid/GridDragZone.js
patch
|
blob
|
history
diff --git
a/Roo/grid/GridDragZone.js
b/Roo/grid/GridDragZone.js
index
25de399
..
947f2d2
100644
(file)
--- 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.
// before it used to all dragging of unseleted... - now we dont do that.
- if(
sels && sels.length
){
+ if(
rowIndex
){
// if editorgrid..
// if editorgrid..
@@
-69,7
+70,8
@@
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: sels
+ selections: sm.getSelections ? sm.getSelections() : (
+ sm.getSelectedCell() ? [ this.grid.ds.getAt(sm.getSelectedCell()[0]) ] : [])
};
}
return false;
};
}
return false;