Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79039

Mathjax : Rewrite old JavaScript to AMD module

    XMLWordPrintable

Details

    • MOODLE_402_STABLE
    • MOODLE_403_STABLE
    • MDL-79039-master
    • Hide

      Testing 1

      • Enable mathjax filter in our sites.
      • Disable the Tex filter
      • Create content that has mathjax in it.

      Expected: Content that has mathjax is working as normal

      Testing 2

      1. Enable mathjax filter in our sites.
      2. Disable the Tex filter
      3. Create a new Forum with "Whole forum grading" enabled
      4. Login as a student account.
      5. Create a forum post with content as follows (Use the HTML code mode of the editor): 

        \( \succeq \circ \div \pm \diamond \int_{a}^{b}{c} \iint_{a}^{b}{c} \left| \begin{matrix} a_1 & a_2 \\ a_3 & a_4 \end{matrix} \right| \) 

      6. Login as a teacher account.
      7. Open the browser dev tools and locate the "Console".
      8. Press the "Grade users" button.
      9. Verify that there is no console error like: Uncaught TypeError: node.querySelectorAll is not a function
      Show
      Testing 1 Enable mathjax filter in our sites. Disable the Tex filter Create content that has mathjax in it. Expected: Content that has mathjax is working as normal Testing 2 Enable mathjax filter in our sites. Disable the Tex filter Create a new Forum with "Whole forum grading" enabled Login as a student account. Create a forum post with content as follows (Use the HTML code mode of the editor):  \( \succeq \circ \div \pm \diamond \int_{a}^{b}{c} \iint_{a}^{b}{c} \left| \begin{matrix} a_1 & a_2 \\ a_3 & a_4 \end{matrix} \right| \) Login as a teacher account. Open the browser dev tools and locate the "Console". Press the "Grade users" button. Verify that there is no console error like: Uncaught TypeError: node.querySelectorAll is not a function

    Description

      The JavaScript in filter/mathjaxloader/yui/src/loader/js/loader.js needs to be rewritten as an AMD module.

      Attachments

        1. MDL-79039.png
          MDL-79039.png
          113 kB
        2. MDL-79039-testing 1.png
          MDL-79039-testing 1.png
          254 kB
        3. MDL-79039-testing 2.png
          MDL-79039-testing 2.png
          340 kB

        Issue Links

          Activity

            People

              vuvanhieu143 Hieu Vu
              vuvanhieu143 Hieu Vu
              Tim Hunt Tim Hunt
              Huong Nguyen Huong Nguyen
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 19 minutes
                  2h 19m

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.