Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add a comment about the JS flag used on the meal item form page

Roland Geidere0a9f86540a9
diff --git a/nutrition/templates/view_nutrition_plan.html b/nutrition/templates/view_nutrition_plan.html
index 91684e41f..ee6863576 100644
--- a/nutrition/templates/view_nutrition_plan.html
+++ b/nutrition/templates/view_nutrition_plan.html
@@ -17,6 +17,8 @@ function custom_modal_init()
$(document).ready(function() {
+ // Add a flag indicating we are using javascript. Depending on this we show a drop down list
+ // with the ingredients or use an autocompleter
$('.edit-meal').each(function(element){
$(this).attr('href', $(this).attr('href') + '?js=on')
})