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

Database add-on: javascript template not loaded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 3.7.1
    • Database add-on
    • 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

            Unassigned Unassigned
            Fra FxPar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

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