Fix sortable for modern browsers.
[readifood.git] / lib / delivery.php
index 6d7643b..006112c 100644 (file)
     }
 
     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";