Commit 4d0d4646 by Don Mitchell

Fixed the y axis drop problem by requiring it to be within the x bounds.

parent ad5f00f2
......@@ -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
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment