Commit 729dd24c by Waqas Khalid

Unit page doesn't load when mathjax is down

When mathjax is down studio page doesn't work as
it wait for mathjax to load. I replaced the hard
dependency with soft dependency now unit page can
load with mathjax.
parent 72a1d754
......@@ -89,7 +89,7 @@
shim: {
'xmodule': {
deps: [
'jquery', 'underscore', 'mathjax', 'codemirror', 'tinymce',
'jquery', 'underscore', 'codemirror', 'tinymce',
'jquery.tinymce', 'jquery.qtip', 'jquery.scrollTo', 'jquery.flot',
'jquery.cookie', 'utility'
]
......
......@@ -4,21 +4,20 @@
## These files assume that several libraries are available and bound to
## variables in the global context, so we load those libraries with requirejs
## 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.cookie",
"utility"],
function($, _, MathJax, CodeMirror, tinymce) {
function($, _, CodeMirror, tinymce) {
window.$ = $;
window._ = _;
window.MathJax = MathJax;
require(['mathjax']);
window.CodeMirror = CodeMirror;
window.RequireJS = {
'requirejs': requirejs,
'require': require,
'define': define
};
/**
* Loads all modules one-by-one in exact order.
* 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