Skip to content
Snippets Groups Projects
Commit cb653c77 authored by srosse's avatar srosse
Browse files

OO-2729: remove version von MathJax in code, change cdn to our own

parent f126ae92
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ function o_start() { ...@@ -51,7 +51,7 @@ function o_start() {
o_info.initialPageLoadFinished = true; o_info.initialPageLoadFinished = true;
} }
function o_mathjax(fct_success) { function o_mathjax(fct_success) {
jQuery.ajax("${r.mathJaxCdn()}2.6-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML", { jQuery.ajax("${r.mathJaxCdn()}MathJax.js?config=TeX-AMS-MML_HTMLorMML", {
cache: true, cache: true,
dataType: "script", dataType: "script",
success: function() { success: function() {
......
...@@ -600,7 +600,7 @@ public class IFrameDeliveryMapper implements Mapper { ...@@ -600,7 +600,7 @@ public class IFrameDeliveryMapper implements Mapper {
public void appendJsMath() { public void appendJsMath() {
append("<script type=\"text/javascript\" src=\""); append("<script type=\"text/javascript\" src=\"");
append(WebappHelper.getMathJaxCdn()); append(WebappHelper.getMathJaxCdn());
append("2.6-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML\"></script>\n"); append("MathJax.js?config=TeX-AMS-MML_HTMLorMML\"></script>\n");
append("<script type=\"text/javascript\">\n"); append("<script type=\"text/javascript\">\n");
append("MathJax.Hub.Config({\n"); append("MathJax.Hub.Config({\n");
append(" extensions: [\"jsMath2jax.js\"],\n"); append(" extensions: [\"jsMath2jax.js\"],\n");
......
...@@ -536,7 +536,7 @@ allow.cross.origin.domain.values=*,www.frentix.com ...@@ -536,7 +536,7 @@ allow.cross.origin.domain.values=*,www.frentix.com
# MathJAX CDN # MathJAX CDN
######################################################################## ########################################################################
mathjax.cdn=//cdn.mathjax.org/mathjax/ mathjax.cdn=//mathjax.openolat.org/mathjax/2.7-latest/
######################################################################## ########################################################################
# Database settings # Database settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment