Self hosted FLOSS fitness/workout, nutrition and weight tracker
Use 'this' to get the sorted table, otherwise the selector returns always the 1st
Roland Geiderd2d1cf81cf80
diff --git a/manager/templates/workout/view.html b/manager/templates/workout/view.htmlindex c2968d3de..a5c5aad62 100644--- a/manager/templates/workout/view.html+++ b/manager/templates/workout/view.html@@ -16,10 +16,8 @@ $(document).ready(function() {// Monkey around the HTML, till we find the IDs of the set and the dayday_element = ui.item.parent().parent().find('tr').first().attr('id'); //day-xy-day_id = day_element.match(/\d+/);-- order = $(".workout-table tbody").sortable('toArray');+ order = $( this ).sortable('toArray');//$("#ajax-info").show();//$("#ajax-info").addClass('success');