Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3172

Database add-on: javascript template not loaded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.1
    • Fix Version/s: None
    • Component/s: Database add-on
    • Labels:
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      Hi

      Functions in the javascript template of the database activity doesn't seem to be loaded by the mobile app.

      A button with

      onclick="test():"

      and the

      function test(){window.alert("hello"); console.log("hello");}

      in the javascript template gives the error:

      Uncaught ReferenceError: test is not defined

      when the button is clicked.

       

      Tested in moodle-3.7.2 and 3.4, and on mobile app for android, for windows, and on the mobile.moodledemo.net tool.

      Regards

      François

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            Fra FxPar
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: