Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

The ingredient list doesn't have categries, use a normal autocompleter

Roland Geider73979281f37f
diff --git a/manager/static/js/workout-manager.js b/manager/static/js/workout-manager.js
index 671c1f3a2..f1d263919 100644
--- a/manager/static/js/workout-manager.js
+++ b/manager/static/js/workout-manager.js
@@ -278,7 +278,7 @@ function scatterplot_modal_dialog(id)
function init_ingredient_autocompleter()
{
// Init the autocompleter
- $("#id_ingredient_searchfield").catcomplete({
+ $("#id_ingredient_searchfield").autocomplete({
source: "/nutrition/ingredient/search/",
minLength: 2,
select: function(event, ui) {