Add mathajax lib see #7792

1.10.x
Julio Montoya 10 years ago
parent e5b483a2d9
commit 5331084f62
  1. 1
      composer.json
  2. 1
      main/document/showinframes.php
  3. 8
      main/inc/lib/template.lib.php

@ -75,6 +75,7 @@
"bower-asset/fullcalendar": "2.3.2",
"bower-asset/simplewebrtc": "1.15.*",
"bower-asset/select2": "4.*",
"bower-asset/MathJax": "2.5.*",
"clue/graph": "~0.9.0",
"graphp/graphviz": "~0.2.0",
"graphp/algorithms": "~0.8.0",

@ -185,6 +185,7 @@ $js_glossary_in_documents = '
{
load: [
{ type:"script", id:"_fr1", src:"'.api_get_jquery_web_path().'"},
{ type:"script", id:"_fr7", src:"'.api_get_path(WEB_PATH).'web/assets/MathJax/MathJax.js?config=AM_HTMLorMML"},
{ type:"script", id:"_fr4", src:"'.api_get_path(WEB_PATH).'web/assets/jquery-ui/jquery-ui.min.js"},
{ type:"stylesheet", id:"_fr5", src:"'.api_get_path(WEB_PATH).'web/assets/jquery-ui/themes/smoothness/jquery-ui.min.css"},
{ type:"stylesheet", id:"_fr6", src:"'.api_get_path(WEB_PATH).'web/assets/jquery-ui/themes/smoothness/theme.css"},

@ -626,10 +626,6 @@ class Template
$js_files[] = 'fontresize.js';
}
if (api_get_setting('include_asciimathml_script') == 'true') {
$js_files[] = 'asciimath/ASCIIMathML.js';
}
$js_files[] = 'tag/jquery.fcbkcomplete.js';
$js_file_to_string = null;
@ -649,6 +645,10 @@ class Template
'imagemap-resizer/js/imageMapResizer.min.js'
];
if (api_get_setting('include_asciimathml_script') == 'true') {
$bowerJsFiles[] = 'MathJax/MathJax.js?config=AM_HTMLorMML';
}
if ($isoCode != 'en') {
$bowerJsFiles[] = 'jqueryui-timepicker-addon/dist/i18n/jquery-ui-timepicker-' . $isoCode . '.js';
$bowerJsFiles[] = 'jquery-ui/ui/minified/i18n/datepicker-' . $isoCode . '.min.js';

Loading…
Cancel
Save