Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Initialise exercise_id and target variables

Roland Geider892aa282cf71
diff --git a/wger/manager/static/js/workout-manager.js b/wger/manager/static/js/workout-manager.js
index 111d91456..1cd9e5c9e 100644
--- a/wger/manager/static/js/workout-manager.js
+++ b/wger/manager/static/js/workout-manager.js
@@ -413,7 +413,7 @@ function init_edit_set()
// clicks on the delete link
$(".ajax-exercise-select a").click(function(e) {
e.preventDefault();
- exercise_id = $(this).parent('div').find('input').val()
+ var exercise_id = $(this).parent('div').find('input').val()
$('#formset-exercise-'+exercise_id).remove();
$(this).parent('div').remove();
});
@@ -783,7 +783,7 @@ function toggle_weight_log_table()
{
$(".weight-chart-table-toggle").click(function(e) {
e.preventDefault();
- target = $(this).data('toggleTarget');
+ var target = $(this).data('toggleTarget');
$('#' + target).toggle({effect: 'blind', duration: 600});
});
}