diff --git a/core/admin.py b/core/admin.py index 0c8b605..6e9d058 100644 --- a/core/admin.py +++ b/core/admin.py @@ -16,7 +16,7 @@ class TroggleModelAdmin(admin.ModelAdmin): obj.save() class Media: - js = ('js/jquery.js','js/QM_helper.js') + js = ('jquery/jquery.min.js','js/QM_helper.js') class RoleInline(admin.TabularInline): model = SurvexPersonRole diff --git a/localsettingsserver.py b/localsettingsserver.py index 0ac8fed..61f5252 100644 --- a/localsettingsserver.py +++ b/localsettingsserver.py @@ -42,7 +42,7 @@ MEDIA_URL = URL_ROOT + DIR_ROOT + 'site_media/' MEDIA_ROOT = REPOS_ROOT_PATH + '/troggle/media/' MEDIA_ADMIN_DIR = '/usr/lib/python2.7/site-packages/django/contrib/admin/media/' -JSLIB_PATH = /usr/share/javascript/ +JSLIB_URL = "URL_ROOT + javascript/" TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/' TINY_MCE_MEDIA_URL = URL_ROOT + DIR_ROOT + 'tinymce_media/' diff --git a/templates/base.html b/templates/base.html index fda3617..63724ee 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,7 +6,7 @@ {% block title %}Troggle{% endblock %} - + diff --git a/templates/cavebase.html b/templates/cavebase.html index b3505a7..4b7c3b9 100644 --- a/templates/cavebase.html +++ b/templates/cavebase.html @@ -5,9 +5,9 @@ {% block title %}{{ cave.official_name|safe }}{% endblock %} - - - + + + + + {{ tripForm.media }} diff --git a/templates/editcave2.html b/templates/editcave2.html index edac202..85df6e7 100644 --- a/templates/editcave2.html +++ b/templates/editcave2.html @@ -3,8 +3,8 @@ {% block title %}Edit Cave{% endblock %} {% block extraheaders %} - - + + {% endblock %} diff --git a/templates/editentrance.html b/templates/editentrance.html index e772a11..250bfb0 100644 --- a/templates/editentrance.html +++ b/templates/editentrance.html @@ -3,8 +3,8 @@ {% block title %}Edit Entrance{% endblock %} {% block extraheaders %} - - + + {% endblock %} diff --git a/templates/editfile.html b/templates/editfile.html index b9ae115..c420654 100644 --- a/templates/editfile.html +++ b/templates/editfile.html @@ -20,8 +20,9 @@ }); - - + + + {{ fileForm.media }} diff --git a/templates/newlogbookentry.html b/templates/newlogbookentry.html index 36e8591..a5ac387 100644 --- a/templates/newlogbookentry.html +++ b/templates/newlogbookentry.html @@ -17,8 +17,8 @@ }); - - + + {{ tripForm.media }} diff --git a/templates/svxfile.html b/templates/svxfile.html index bf9f1c3..fbaacdd 100644 --- a/templates/svxfile.html +++ b/templates/svxfile.html @@ -5,8 +5,8 @@ {% block head %} - - + +