From ab339239f86c3338e7e5ccc6161dbfa581a9ff8f Mon Sep 17 00:00:00 2001 From: Rocky Duan Date: Mon, 30 Jul 2012 13:44:00 -0400 Subject: [PATCH] use single js dependencies for discussion in forum / courseware --- lms/templates/courseware.html | 24 ++------------- .../discussion/_js_dependencies.html | 30 +++++++++++++++++++ lms/templates/discussion/index.html | 28 +---------------- 3 files changed, 33 insertions(+), 49 deletions(-) create mode 100644 lms/templates/discussion/_js_dependencies.html diff --git a/lms/templates/courseware.html b/lms/templates/courseware.html index 78114d601f..eb8aed7e1b 100644 --- a/lms/templates/courseware.html +++ b/lms/templates/courseware.html @@ -28,28 +28,8 @@ <%static:js group='courseware'/> - - - - - - - - - + <%include file="discussion/_js_dependencies.html" /> + + + ## This must appear after all mathjax-config blocks, so it is after the imports from the other templates. + ## It can't be run through static.url because MathJax uses crazy url introspection to do lazy loading of MathJax extension libraries + + + + + + + + + + diff --git a/lms/templates/discussion/index.html b/lms/templates/discussion/index.html index 6a1ab7d130..cb5b42333c 100644 --- a/lms/templates/discussion/index.html +++ b/lms/templates/discussion/index.html @@ -8,33 +8,7 @@ <%block name="js_extra"> - - - - ## This must appear after all mathjax-config blocks, so it is after the imports from the other templates. - ## It can't be run through static.url because MathJax uses crazy url introspection to do lazy loading of MathJax extension libraries - - - - - - - - - - +<%include file="_js_dependencies.html" /> <%include file="../course_navigation.html" args="active_page='discussion'" />