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() { ...@@ -111,11 +111,13 @@ $(document).ready(function() {
$('.sortable-unit-list').droppable({ $('.sortable-unit-list').droppable({
accept : '.unit', accept : '.unit',
greedy: true, greedy: true,
tolerance: "pointer",
drop: onUnitReordered drop: onUnitReordered
}); });
$('.subsection-list > ol').droppable({ $('.subsection-list > ol').droppable({
// why don't we have a more useful class for subsections than id-holder? // why don't we have a more useful class for subsections than id-holder?
accept : '.id-holder', // '.unit, .id-holder', accept : '.id-holder', // '.unit, .id-holder',
tolerance: "pointer",
drop: onSubsectionReordered, drop: onSubsectionReordered,
greedy: true greedy: true
}); });
...@@ -123,6 +125,7 @@ $(document).ready(function() { ...@@ -123,6 +125,7 @@ $(document).ready(function() {
// Section reordering // Section reordering
$('.courseware-overview').droppable({ $('.courseware-overview').droppable({
accept : '.courseware-section', accept : '.courseware-section',
tolerance: "pointer",
drop: onSectionReordered, drop: onSectionReordered,
greedy: true 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