Revert "Have DiscussionXBlock take care of loading assets it depends on"
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
var vendorScript;
|
||||
if (typeof MathJax === 'undefined') {
|
||||
vendorScript = document.createElement('script');
|
||||
vendorScript.onload = function() {
|
||||
'use strict';
|
||||
var MathJax = window.MathJax,
|
||||
setMathJaxDisplayDivSettings;
|
||||
MathJax.Hub.Config({
|
||||
tex2jax: {
|
||||
inlineMath: [
|
||||
['\\(', '\\)'],
|
||||
['[mathjaxinline]', '[/mathjaxinline]']
|
||||
],
|
||||
displayMath: [
|
||||
['\\[', '\\]'],
|
||||
['[mathjax]', '[/mathjax]']
|
||||
]
|
||||
}
|
||||
});
|
||||
MathJax.Hub.signal.Interest(function(message) {
|
||||
if (message[0] === 'End Math') {
|
||||
setMathJaxDisplayDivSettings();
|
||||
}
|
||||
});
|
||||
setMathJaxDisplayDivSettings = function() {
|
||||
$('.MathJax_Display').each(function() {
|
||||
this.setAttribute('tabindex', '0');
|
||||
this.setAttribute('aria-live', 'off');
|
||||
this.removeAttribute('role');
|
||||
this.removeAttribute('aria-readonly');
|
||||
});
|
||||
};
|
||||
};
|
||||
vendorScript.src = 'https://cdn.mathjax.org/mathjax/2.6-latest/MathJax.js?config=TeX-MML-AM_SVG';
|
||||
document.body.appendChild(vendorScript);
|
||||
}
|
||||
@@ -18,6 +18,12 @@
|
||||
created_at: '2014-09-09T20:11:08Z'
|
||||
};
|
||||
this.imageTag = '<img src="https://www.google.com.pk/images/srpr/logo11w.png">';
|
||||
window.MathJax = {
|
||||
Hub: {
|
||||
Queue: function() {
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
makeView = function(thread) {
|
||||
var view;
|
||||
|
||||
Reference in New Issue
Block a user