}
if ($count > 1) {
- echo "<div class=\"sortable\">\n";
echo "<p class=\"noprint\">Drag delivery details to reorder the schedule.</p>\n";
+ echo "<div class=\"sortable\">\n";
}
foreach ($orders as $order) {
$contact = get_contact_by_id($order->getBeneficiaryId());
if (! $contact) continue;
- echo "<span>\n";
+ echo "<div>";
$phones = array();
$area = get_contact_area($contact);
}
echo "<hr>\n";
- echo "</span>\n\n";
+ echo "</div>\n\n";
}
if ($count > 1) echo "</div>\n";
<link rel="stylesheet" type="text/css" href="/style.css">
<title><?php echo "$charity"; if ($module) echo " - $module"; ?></title>
<?php
- echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css\">\n";
- echo "<script src=\"$http://code.jquery.com/jquery-1.9.1.js\"></script>\n";
- echo "<script src=\"$http://code.jquery.com/ui/1.10.3/jquery-ui.js\"></script>\n";
+ echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$http://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css\">\n";
+ echo "<script src=\"$http://code.jquery.com/jquery-1.12.4.js\"></script>\n";
+ echo "<script src=\"$http://code.jquery.com/ui/1.12.1/jquery-ui.js\"></script>\n";
?>
<script src="/jquery.autosize.js"></script>
<script src="/jquery.sortable.js"></script>
$(function() {
$(".sortable").sortable({
axis: "y",
- containment: "parent",
+ containment: "document",
placeholder: "sortplaceholder",
forcePlaceholderSize: true,
start: function( event, ui ) { ui.item.addClass('sortdragging'); },
border-radius: 0.5em;
padding-bottom: 1em;
background: #eeeeee;
+ opacity: 0.75;
}
span.sortdragging hr {