Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-35715 course dragdrop Fix the ability to drag back to the empty s…

…ection
  • Loading branch information...
commit 9d7525fb1aaf711c25178d3a0f9b126ac0eee424 1 parent 5d6285c
@kabalin kabalin authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 course/yui/dragdrop/dragdrop.js
View
12 course/yui/dragdrop/dragdrop.js
@@ -294,13 +294,13 @@ YUI.add('moodle-course-dragdrop', function(Y) {
var resources = Y.Node.create('<ul></ul>');
resources.addClass(CSS.SECTION);
sectionnode.one('.'+CSS.CONTENT+' div.'+CSS.SUMMARY).insert(resources, 'after');
- // Define empty ul as droptarget, so that item could be moved to empty list
- var tar = new Y.DD.Drop({
- node: resources,
- groups: this.groups,
- padding: '20 0 20 0'
- });
}
+ // Define empty ul as droptarget, so that item could be moved to empty list
+ var tar = new Y.DD.Drop({
+ node: resources,
+ groups: this.groups,
+ padding: '20 0 20 0'
+ });
// Initialise each resource/activity in this section
this.setup_for_resource('#'+sectionnode.get('id')+' li.'+CSS.ACTIVITY);
Please sign in to comment.
Something went wrong with that request. Please try again.