Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix form media for exercise edit

Roland Geidereaa1ba0d3d32
diff --git a/exercises/views.py b/exercises/views.py
index b9d351424..3fbeadd19 100644
--- a/exercises/views.py
+++ b/exercises/views.py
@@ -212,7 +212,7 @@ class ExercisesEditAddView(YamlFormMixin):
model = Exercise
class Media:
- js = ('js/tinymce/tiny_mce.js')
+ js = ('js/tinymce/tiny_mce.js',)
return ExerciseForm
diff --git a/manager/static/js/workout-manager.js b/manager/static/js/workout-manager.js
index 87deb4258..e126c964f 100644
--- a/manager/static/js/workout-manager.js
+++ b/manager/static/js/workout-manager.js
@@ -198,7 +198,7 @@ function set_english_ingredients()
/*
* Init calls for tinyMCE editor
*/
-function init_tinymce () {
+function init_tinymce() {
// Only try to init it on pages that loaded its JS file (so they probably need it)
if (typeof tinyMCE != 'undefined')