Commit a8457c4f by Waqas Khalid

Merge pull request #6871 from edx/waqas/studio-mathjax-unit-problem

Unit page doesn't load when mathjax is down
parents 5efabb1c 729dd24c
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
shim: { shim: {
'xmodule': { 'xmodule': {
deps: [ deps: [
'jquery', 'underscore', 'mathjax', 'codemirror', 'tinymce', 'jquery', 'underscore', 'codemirror', 'tinymce',
'jquery.tinymce', 'jquery.qtip', 'jquery.scrollTo', 'jquery.flot', 'jquery.tinymce', 'jquery.qtip', 'jquery.scrollTo', 'jquery.flot',
'jquery.cookie', 'utility' 'jquery.cookie', 'utility'
] ]
......
...@@ -4,21 +4,20 @@ ...@@ -4,21 +4,20 @@
## These files assume that several libraries are available and bound to ## These files assume that several libraries are available and bound to
## variables in the global context, so we load those libraries with requirejs ## variables in the global context, so we load those libraries with requirejs
## and attach them to the global context manually. ## and attach them to the global context manually.
define(["jquery", "underscore", "mathjax", "codemirror", "tinymce", define(["jquery", "underscore", "codemirror", "tinymce",
"jquery.tinymce", "jquery.qtip", "jquery.scrollTo", "jquery.flot", "jquery.tinymce", "jquery.qtip", "jquery.scrollTo", "jquery.flot",
"jquery.cookie", "jquery.cookie",
"utility"], "utility"],
function($, _, MathJax, CodeMirror, tinymce) { function($, _, CodeMirror, tinymce) {
window.$ = $; window.$ = $;
window._ = _; window._ = _;
window.MathJax = MathJax; require(['mathjax']);
window.CodeMirror = CodeMirror; window.CodeMirror = CodeMirror;
window.RequireJS = { window.RequireJS = {
'requirejs': requirejs, 'requirejs': requirejs,
'require': require, 'require': require,
'define': define 'define': define
}; };
/** /**
* Loads all modules one-by-one in exact order. * Loads all modules one-by-one in exact order.
* The module should be used until we'll use RequireJS for XModules. * The module should be used until we'll use RequireJS for XModules.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment