Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Reset the exercise autocompleter after selecting a result

Roland Geider1ce674f70772
diff --git a/manager/static/js/workout-manager.js b/manager/static/js/workout-manager.js
index dda588318..759bfe312 100644
--- a/manager/static/js/workout-manager.js
+++ b/manager/static/js/workout-manager.js
@@ -330,6 +330,10 @@ function init_edit_set()
e.preventDefault();
$(this).parent('div').remove();
});
+
+ // Reset the autocompleter
+ $(this).val("");
+ return false;
}
});
}