Browse Source

Fix AsciiMath on learning paths - refs #8212

Angel Fernando Quiroz Campos 8 years ago
parent
commit
af474e3a7b
1 changed files with 16 additions and 0 deletions
  1. 16 0
      main/template/default/learnpath/view.tpl

+ 16 - 0
main/template/default/learnpath/view.tpl

@@ -269,6 +269,22 @@
                     {% endif %}
                 })();
             {% endif %}
+
+            $('iframe#content_id')
+                .on('load', function () {
+                    $.frameReady(function () {
+                    }, 'top.content_name', {
+                        load: [
+                            {type: 'script', id: '_fr1', src: '{{ _p.web }}web/assets/jquery/dist/jquery.min.js'},
+                            {type: 'script', id: '_fr7', src: '{{ _p.web }}web/assets/MathJax/MathJax.js?config=AM_HTMLorMML'},
+                            {type: 'script', id: '_fr4', src: '{{ _p.web }}web/assets/jquery-ui/jquery-ui.min.js'},
+                            {type: 'stylesheet', id: '_fr5', src: '{{ _p.web }}web/assets/jquery-ui/themes/smoothness/jquery-ui.min.css'},
+                            {type: 'stylesheet', id: '_fr6', src: '{{ _p.web }}web/assets/jquery-ui/themes/smoothness/theme.css'},
+                            {type: 'script', id: '_fr2', src: '{{ _p.web_lib }}javascript/jquery.highlight.js'},
+                            {type: 'script', id: '_fr3', src: '{{ _p.web_main }}glossary/glossary.js.php'}
+                        ]
+                    });
+                });
         });
 
         $(window).on('resize', function () {