Self hosted FLOSS fitness/workout, nutrition and weight tracker
Call the edit set functions through the custom modal dialog function
Roland Geidera4104cf7ad3c
diff --git a/manager/templates/tags/render_day.html b/manager/templates/tags/render_day.htmlindex a96f4a83d..720f8c665 100644--- a/manager/templates/tags/render_day.html+++ b/manager/templates/tags/render_day.html@@ -149,7 +149,7 @@ $(document).ready(function() {<tr><td colspan="2"><a href="{% url manager.views.edit_set workout.id day.id None %}"- >{% trans "Add workout set" %}</a>+ class="modal-dialog">{% trans "Add workout set" %}</a></td></tr></tbody>diff --git a/manager/templates/workout/view.html b/manager/templates/workout/view.htmlindex 91cad1eef..134365452 100644--- a/manager/templates/workout/view.html+++ b/manager/templates/workout/view.html@@ -7,8 +7,14 @@{% block header %}<script src="{% static 'js/jquery-ui.js' %}"></script>+<script src="{% static 'js/jquery.validate.js' %}"></script><script src="{% static 'js/workout-manager.js' %}"></script><script>+function custom_modal_init()+{+ // Set up the edit set functions on modal dialogs+ init_edit_set();+}$(document).ready(function() {// Allow the sets to be sortable