Revert "Have DiscussionXBlock take care of loading assets it depends on"

This commit is contained in:
Jesse Zoldak
2016-10-05 12:37:12 -04:00
committed by GitHub
parent c943d42b7d
commit dbab855742
19 changed files with 58 additions and 262 deletions

View File

@@ -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);
}

View File

@@ -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;