projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf55792
)
Roo/grid/GridDragZone.js
author
Alan Knowles
<alan@akbkhome.com>
Sun, 18 Nov 2012 06:51:30 +0000
(14:51 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sun, 18 Nov 2012 06:51:30 +0000
(14:51 +0800)
Roo/grid/GridDragZone.js
patch
|
blob
|
history
diff --git
a/Roo/grid/GridDragZone.js
b/Roo/grid/GridDragZone.js
index
ed8d74d
..
842e1fd
100644
(file)
--- a/
Roo/grid/GridDragZone.js
+++ b/
Roo/grid/GridDragZone.js
@@
-45,7
+45,9
@@
Roo.extend(Roo.grid.GridDragZone, Roo.dd.DragZone, {
grid: this.grid,
ddel: this.ddel,
rowIndex: rowIndex,
- selections:sm.getSelections ? sm.getSelections() : [ grid.ds.getAt(sm.getSelectedCell()[0]) ]
+ selections:sm.getSelections ? sm.getSelections() : (
+ sm.getSelectedCell() ? [ grid.ds.getAt(sm.getSelectedCell()[0]) ] : []
+ )
};
}
return false;