projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c60d651
)
Roo/grid/GridDragZone.js
author
Alan Knowles
<alan@akbkhome.com>
Sun, 18 Nov 2012 07:01:43 +0000
(15:01 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sun, 18 Nov 2012 07:01:43 +0000
(15:01 +0800)
Roo/grid/GridDragZone.js
patch
|
blob
|
history
diff --git
a/Roo/grid/GridDragZone.js
b/Roo/grid/GridDragZone.js
index
842e1fd
..
f07f0d2
100644
(file)
--- a/
Roo/grid/GridDragZone.js
+++ b/
Roo/grid/GridDragZone.js
@@
-32,8
+32,13
@@
Roo.extend(Roo.grid.GridDragZone, Roo.dd.DragZone, {
var rowIndex = this.view.findRowIndex(t);
if(rowIndex !== false){
var sm = this.grid.selModel;
var rowIndex = this.view.findRowIndex(t);
if(rowIndex !== false){
var sm = this.grid.selModel;
+
+ if (sm.getSelectedCell && !sm.getSelectedCell()) {
+ sm.mouseDown(e, t);
+ }
+
//if(!sm.isSelected(rowIndex) || e.hasModifier()){
//if(!sm.isSelected(rowIndex) || e.hasModifier()){
- //
sm.mouseDown(e, t);
+ //
//}
if (e.hasModifier()){
sm.handleMouseDown(e, t); // non modifier buttons are handled by row select.
//}
if (e.hasModifier()){
sm.handleMouseDown(e, t); // non modifier buttons are handled by row select.