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

This commit is contained in:
Don Mitchell
2013-01-23 12:12:40 -05:00
parent ad5f00f270
commit 4d0d46462c

View File

@@ -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
});