Changeset 7769
- Timestamp:
- 03/22/07 22:39:46 (20 months ago)
- Files:
-
- 1 modified
-
trunk/src/dnd2/source.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dnd2/source.js
r7767 r7769 80 80 } 81 81 }else{ 82 if(this.mouse_down ){82 if(this.mouse_down && this.is_source){ 83 83 m.startDrag(this, this.getSelectedNodes(), e.ctrlKey); 84 84 } … … 109 109 this.changeState("Source", this == source ? (copy ? "Copied" : "Moved") : ""); 110 110 } 111 if(this.accept){ 112 var accepted = this.checkAcceptance(source, nodes); 113 this.changeState("Target", accepted ? "" : "Disabled"); 114 if(accepted){ 115 dojo.dnd2.manager().overSource(this); 116 } 111 var accepted = this.accept && this.checkAcceptance(source, nodes); 112 this.changeState("Target", accepted ? "" : "Disabled"); 113 if(accepted){ 114 dojo.dnd2.manager().overSource(this); 117 115 } 118 116 this.is_dragging = true;