Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Undo some of the changes from changeset e8937f731d69

Roland Geider542040d43bb4
diff --git a/manager/static/js/workout-manager.js b/manager/static/js/workout-manager.js
index 3ab063fd8..3978befc6 100644
--- a/manager/static/js/workout-manager.js
+++ b/manager/static/js/workout-manager.js
@@ -118,7 +118,7 @@ function setup_inplace_editing()
})
// Send the Form
- $(element).submit(function(e) {
+ $('.ajax-form-set-edit').submit(function(e) {
e.preventDefault();
url = "/workout/api/edit-set?do=edit_set&set=" + set_id + "&exercise=" + exercise_id
@@ -129,7 +129,7 @@ function setup_inplace_editing()
});
// Init the autocompleter
- $(element).autocomplete({
+ $(".ajax-form-exercise-list").autocomplete({
source: "/exercise/search/",
minLength: 2,
select: function(event, ui) {