Self hosted FLOSS fitness/workout, nutrition and weight tracker
Redirect to correct detail calendar page
Roland Geider223e7bcdf0b4
diff --git a/wger/manager/templates/workout/timer.html b/wger/manager/templates/workout/timer.htmlindex 1802c463c..908993783 100644--- a/wger/manager/templates/workout/timer.html+++ b/wger/manager/templates/workout/timer.html@@ -240,7 +240,7 @@ $(document).ready(function() {// After clicking on the save button once, disable itfunction( data ) {var today = new Date();- var date = '/' + today.getFullYear() + '/' + today.getMonth() + '/' + today.getDay();+ var date = '/' + today.getFullYear() + '/' + (today.getMonth() + 1) + '/' + today.getDate();window.location = '/' + get_current_language() + '/workout/calendar/' + get_username() + date;$('#save_button_form').unbind("click");$('#save_button_form').addClass('disabled');