Self hosted FLOSS fitness/workout, nutrition and weight tracker
Move workout-manager.js to base template, it was being included everywhere
Roland Geiderc362133a7296
diff --git a/exercises/templates/overview.html b/exercises/templates/overview.htmlindex 60aa8e5ed..2d148ad16 100644--- a/exercises/templates/overview.html+++ b/exercises/templates/overview.html@@ -12,7 +12,6 @@{% block header %}<script src="{% static 'js/jquery-ui.js' %}"></script><script src="{% static 'js/tinymce/tiny_mce.js' %}"></script>-<script src="{% static 'js/workout-manager.js' %}"></script><script>function custom_modal_init()diff --git a/exercises/templates/view.html b/exercises/templates/view.htmlindex 16fc8795c..0541fb5fe 100644--- a/exercises/templates/view.html+++ b/exercises/templates/view.html@@ -6,7 +6,6 @@{% block header %}<script src="{% static "js/jquery-ui.js" %}"></script><script src="{% static "js/tinymce/tiny_mce.js" %}"></script>-<script src="{% static "js/workout-manager.js" %}"></script><script>function custom_modal_init()diff --git a/exercises/views.py b/exercises/views.pyindex 68dd99e35..1ade76cd9 100644--- a/exercises/views.py+++ b/exercises/views.py@@ -150,8 +150,7 @@ class ExercisesEditAddView(YamlFormMixin):'description']select_lists = ['category']- static_files = ['js/tinymce/tiny_mce.js',- 'js/workout-manager.js']+ static_files = ['js/tinymce/tiny_mce.js']custom_js = 'init_tinymce();'diff --git a/manager/templates/base.html b/manager/templates/base.htmlindex 6732d420c..443615758 100644--- a/manager/templates/base.html+++ b/manager/templates/base.html@@ -31,6 +31,7 @@<script src="{% static "js/jquery.js" %}"></script>+ <script src="{% static "js/workout-manager.js" %}"></script>{% block header %}{% endblock %}<title>{% block title %}{% endblock %}</title>diff --git a/manager/templates/set/edit.html b/manager/templates/set/edit.htmlindex 0fd377097..091912215 100644--- a/manager/templates/set/edit.html+++ b/manager/templates/set/edit.html@@ -13,7 +13,6 @@{% 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>$(document).ready(function() {diff --git a/manager/templates/workout/view.html b/manager/templates/workout/view.htmlindex 1f31e2392..da8645677 100644--- a/manager/templates/workout/view.html+++ b/manager/templates/workout/view.html@@ -8,7 +8,6 @@{% 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(){diff --git a/nutrition/templates/edit_meal_item.html b/nutrition/templates/edit_meal_item.htmlindex d655a40f9..aa3ba0adb 100644--- a/nutrition/templates/edit_meal_item.html+++ b/nutrition/templates/edit_meal_item.html@@ -7,7 +7,6 @@{% block header %}<script src="{% static 'js/jquery-ui.js' %}"></script>-<script src="{% static 'js/workout-manager.js' %}"></script><script type="text/javascript">$(document).ready(function() {// Init the autocompleterdiff --git a/nutrition/templates/ingredient_overview.html b/nutrition/templates/ingredient_overview.htmlindex b70b8bad4..430ddb3b2 100644--- a/nutrition/templates/ingredient_overview.html+++ b/nutrition/templates/ingredient_overview.html@@ -6,7 +6,6 @@{% block header %}<script src="{% static 'js/jquery-ui.js' %}"></script>-<script src="{% static 'js/workout-manager.js' %}"></script><script>$(document).ready(function() {// Init the modal dialog to edit the exercisediff --git a/nutrition/templates/view_ingredient.html b/nutrition/templates/view_ingredient.htmlindex a4ee99728..aec86977a 100644--- a/nutrition/templates/view_ingredient.html+++ b/nutrition/templates/view_ingredient.html@@ -7,7 +7,6 @@{% block header %}<script src="{% static 'js/jquery-ui.js' %}"></script>-<script src="{% static 'js/workout-manager.js' %}"></script><script>$(document).ready(function() {// Init the modal dialog to edit the exercisediff --git a/nutrition/templates/view_nutrition_plan.html b/nutrition/templates/view_nutrition_plan.htmlindex 1b76a8077..c7301933c 100644--- a/nutrition/templates/view_nutrition_plan.html+++ b/nutrition/templates/view_nutrition_plan.html@@ -7,7 +7,6 @@{% block header %}<script src="{% static 'js/jquery-ui.js' %}"></script>-<script src="{% static 'js/workout-manager.js' %}"></script><script>function custom_modal_init(){diff --git a/weight/templates/edit.html b/weight/templates/edit.htmlindex 5dc731e3a..42b8ad909 100644--- a/weight/templates/edit.html+++ b/weight/templates/edit.html@@ -8,7 +8,6 @@{% block header %}<script src="{% static "js/jquery-ui.js" %}"></script>-<script src="{% static 'js/workout-manager.js' %}"></script><script>$(document).ready(function () {init_weight_datepicker();@@ -47,4 +46,4 @@ $(document).ready(function () {<!--Side bar-->-{% block sidebar %}{% endblock %}\ No newline at end of file+{% block sidebar %}{% endblock %}diff --git a/weight/templates/weight_overview.html b/weight/templates/weight_overview.htmlindex 7eb21da1e..f60ccfeca 100644--- a/weight/templates/weight_overview.html+++ b/weight/templates/weight_overview.html@@ -15,7 +15,6 @@{% if language.short_name == 'de' %}<script src="{% static 'js/jquery.ui.datepicker-de.js' %}"></script>{% endif %}-<script src="{% static 'js/workout-manager.js' %}"></script><script src="{% static 'js/d3.js' %}"></script><script src="{% static 'js/jquery-globalize/lib/globalize.js' %}"></script>