root / trunk / web / dojo / dojox / grid / enhanced / dnd / _DndBuilder.js
History | View | Annotate | Download (977 Bytes)
1 |
/*
|
---|---|
2 |
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
3 |
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
4 |
see: http://dojotoolkit.org/license for details
|
5 |
*/
|
6 |
|
7 |
|
8 |
if(!dojo._hasResource["dojox.grid.enhanced.dnd._DndBuilder"]){ |
9 |
dojo._hasResource["dojox.grid.enhanced.dnd._DndBuilder"]=true; |
10 |
dojo.provide("dojox.grid.enhanced.dnd._DndBuilder");
|
11 |
dojo.declare("dojox.grid.enhanced.dnd._DndBuilder",null,{domouseup:function(e){ |
12 |
if(this.grid.select.isInSelectingMode("col")){ |
13 |
this.grid.nestedSorting?this.grid.focus.focusSelectColEndingHeader(e):this.grid.focus.focusHeaderNode(e.cellIndex); |
14 |
} |
15 |
if(e.cellNode){
|
16 |
this.grid.onMouseUp(e);
|
17 |
} |
18 |
this.grid.onMouseUpRow(e);
|
19 |
}}); |
20 |
dojo.declare("dojox.grid.enhanced.dnd._DndHeaderBuilder",null,{domouseup:function(e){ |
21 |
if(this.grid.select.isInSelectingMode("col")){ |
22 |
this.grid.nestedSorting?this.grid.focus.focusSelectColEndingHeader(e):this.grid.focus.focusHeaderNode(e.cellIndex); |
23 |
} |
24 |
this.grid.onMouseUp(e);
|
25 |
}}); |
26 |
} |