MDL-47494 ddwtos: OU-2666 Fixed problem when drag misplaced from drop and not dragged off

This commit is contained in:
Jamie Pratt
2011-12-23 14:48:13 +07:00
parent 5be9d2a2f1
commit a681f140a8
+3
View File
@@ -239,6 +239,9 @@ YUI.add('moodle-qtype_ddwtos-dd', function(Y) {
if (this.placed[alreadytheredragno] === placeno) {
delete this.placed[alreadytheredragno];
var alreadytheredrag = Y.one(this.selectors.drag(alreadytheredragno));
if (alreadytheredrag && alreadytheredrag.dd) {
alreadytheredrag.dd.detach('drag:start');
}
}
}
if (drag !== null) {