Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Remove uneeded elements

Roland Geider7895ed12e3a5
diff --git a/manager/templates/workout/view.html b/manager/templates/workout/view.html
index fc47da656..43a42e6aa 100644
--- a/manager/templates/workout/view.html
+++ b/manager/templates/workout/view.html
@@ -15,7 +15,6 @@ $(document).ready(function() {
update : function (event, ui) {
// Monkey around the HTML, till we find the IDs of the set and the day
- set_element = ui.item.attr("id") //set-xy
day_element = ui.item.parent().parent().find('tr').first().attr('id'); //day-xy
day_id = day_element.match(/\d+/);
@@ -23,7 +22,6 @@ $(document).ready(function() {
order = $("#workout-table tbody").sortable('toArray');
$("#ajax-info").load("/workout/api/edit-set" + "?do=set_order&day_id=" + day_id + "&order=" + order);
- //load("" + order);
}
}).disableSelection();