From 4d0d46462cb122cc553137a3db495f07452bc280 Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Wed, 23 Jan 2013 12:12:40 -0500 Subject: [PATCH] Fixed the y axis drop problem by requiring it to be within the x bounds. --- cms/static/js/base.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 553e79a8af..741b017210 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -111,11 +111,13 @@ $(document).ready(function() { $('.sortable-unit-list').droppable({ accept : '.unit', greedy: true, + tolerance: "pointer", drop: onUnitReordered }); $('.subsection-list > ol').droppable({ // why don't we have a more useful class for subsections than id-holder? accept : '.id-holder', // '.unit, .id-holder', + tolerance: "pointer", drop: onSubsectionReordered, greedy: true }); @@ -123,6 +125,7 @@ $(document).ready(function() { // Section reordering $('.courseware-overview').droppable({ accept : '.courseware-section', + tolerance: "pointer", drop: onSectionReordered, greedy: true });