Mobile app not loading the javascript template

Mobile app not loading the javascript template

by Francois Parlant -
Number of replies: 3

Hi,

I tried some of the preset in the mobile app. Javascript directly included in the single or list template works fine.

But the javascript template doesn't seem to be loaded..

I have created a tracker. If someone who worked on javascript in database wants to check and maybe vote for it:

https://tracker.moodle.org/browse/MOBILE-3172

Best regards

François

Average of ratings: -
In reply to Francois Parlant

Re: Mobile app not loading the javascript template

by William Lu -
Picture of Particularly helpful Moodlers
In reply to William Lu

Re: Mobile app not loading the javascript template

by Francois Parlant -
Hi William,
Thank you for your answer and for the link.

Actually, my tests show that really, the moodle APP doesn't load whatever is in the javascript template part of the database plugin.
The other tabs are loaded (single template, list template, css template) but not the javascript template.
Therefore none the preset using javascript can be used by the moodle app.
It is a bit disapointing because most of my students use the mobile app on their mobile.
I hope that the tracker I have set up will get some votes and that the mobile team will repair this soon (for now, it is low in the priority schedule).

Best Regards
François
In reply to Francois Parlant

Re: Mobile app not loading the javascript template

by William Lu -
Picture of Particularly helpful Moodlers

Have you tried to include your Javascript at the bottom of other templates? Just ignore the CSS and Javascript templates, repeat them in the Add/List/Single templates, even it is not ideal.