From a3760d484ddae8d75148fc50a9219a48209782f5 Mon Sep 17 00:00:00 2001 From: Bridger Maxwell <bridgeyman@gmail.com> Date: Thu, 13 Sep 2012 12:38:28 -0400 Subject: [PATCH] Added call to load schematics on wiki pages. --- lms/templates/wiki/base.html | 3 +++ lms/templates/wiki/preview_inline.html | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/lms/templates/wiki/base.html b/lms/templates/wiki/base.html index 8a9686f546c..22b107104b2 100644 --- a/lms/templates/wiki/base.html +++ b/lms/templates/wiki/base.html @@ -31,6 +31,9 @@ {% addtoblock 'js' %} {% comment %} These scripts load at the bottom of the body {% endcomment %} + <script> + window.onload = add_schematic_handler(window.onload); + </script> <script src="{% static 'js/bootstrap-alert.js' %}"></script> <script src="{% static 'js/bootstrap-collapse.js' %}"></script> diff --git a/lms/templates/wiki/preview_inline.html b/lms/templates/wiki/preview_inline.html index a5c6668d16b..2f09d21bd35 100644 --- a/lms/templates/wiki/preview_inline.html +++ b/lms/templates/wiki/preview_inline.html @@ -41,6 +41,10 @@ {% compressed_js 'application' %} {% compressed_js 'module-js' %} + <script> + window.onload = add_schematic_handler(window.onload); + </script> + {% with mathjax_mode='wiki' %} {% include "mathjax_include.html" %} {% endwith %} -- GitLab