Subversion Repositories Applications.papyrus

Rev

Rev 1318 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1318 alexandre_ 1
/*
2
	Copyright (c) 2004-2006, The Dojo Foundation
3
	All Rights Reserved.
4
 
5
	Licensed under the Academic Free License version 2.1 or above OR the
6
	modified BSD license. For more information on Dojo licensing, see:
7
 
8
		http://dojotoolkit.org/community/licensing.shtml
9
*/
10
 
1422 alexandre_ 11
 
12
 
1318 alexandre_ 13
dojo.provide("dojo.dnd.Sortable");
14
dojo.require("dojo.dnd.*");
15
dojo.dnd.Sortable = function () {
16
};
17
dojo.lang.extend(dojo.dnd.Sortable, {ondragstart:function (e) {
18
	var dragObject = e.target;
19
	while (dragObject.parentNode && dragObject.parentNode != this) {
20
		dragObject = dragObject.parentNode;
21
	}
22
	return dragObject;
23
}});
24