From 1a2b3452324ff8ce29aaf46f0c0d769bd01ab39a Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Tue, 2 Oct 2012 14:35:28 +0100 Subject: [PATCH] MDL-35715 course dragdrop Fix the ability to drag back to the empty section --- course/yui/dragdrop/dragdrop.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/course/yui/dragdrop/dragdrop.js b/course/yui/dragdrop/dragdrop.js index f52497ea861..bd35bd9a6e7 100644 --- a/course/yui/dragdrop/dragdrop.js +++ b/course/yui/dragdrop/dragdrop.js @@ -294,13 +294,13 @@ YUI.add('moodle-course-dragdrop', function(Y) { var resources = Y.Node.create(''); 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);