Lines 76-89
DDApp = {
Link Here
|
76 |
if (uls[i].className == "draglist" || uls[i].className == "draglist_alt") { |
76 |
if (uls[i].className == "draglist" || uls[i].className == "draglist_alt") { |
77 |
ddtarget = YAHOO.util.DragDropMgr.getDDById(uls[i].id); |
77 |
ddtarget = YAHOO.util.DragDropMgr.getDDById(uls[i].id); |
78 |
// The yahoo drag and drop is written (broken or not) in such a way, that if an element is subscribed as a target multiple times, |
78 |
// The yahoo drag and drop is written (broken or not) in such a way, that if an element is subscribed as a target multiple times, |
79 |
// it has to be unlinked multiple times, so we need to test wether it is allready a target, otherwise we'll have a problem when closing the group |
79 |
// it has to be unlinked multiple times, so we need to test whether it is allready a target, otherwise we'll have a problem when closing the group |
80 |
if( ! ddtarget ) { |
80 |
if( ! ddtarget ) { |
81 |
new YAHOO.util.DDTarget(uls[i].id); |
81 |
new YAHOO.util.DDTarget(uls[i].id); |
82 |
} |
82 |
} |
83 |
var children = uls[i].getElementsByTagName('li'); |
83 |
var children = uls[i].getElementsByTagName('li'); |
84 |
for( j=0; j<children.length; j=j+1) { |
84 |
for( j=0; j<children.length; j=j+1) { |
85 |
// The yahoo drag and drop is (broken or not) in such a way, that if an element is subscribed as a target multiple times, |
85 |
// The yahoo drag and drop is (broken or not) in such a way, that if an element is subscribed as a target multiple times, |
86 |
// it has to be unlinked multiple times, so we need to test wether it is allready a target, otherwise we'll have a problem when closing the group |
86 |
// it has to be unlinked multiple times, so we need to test whether it is allready a target, otherwise we'll have a problem when closing the group |
87 |
ddtarget = YAHOO.util.DragDropMgr.getDDById(children[j].id); |
87 |
ddtarget = YAHOO.util.DragDropMgr.getDDById(children[j].id); |
88 |
if( ! ddtarget ) { |
88 |
if( ! ddtarget ) { |
89 |
new DDList(children[j].id); |
89 |
new DDList(children[j].id); |
90 |
- |
|
|