Open PoetaGA opened 4 years ago
In addition, testing on Moodle 3.9 this crash seems to prevent other content on the page that relies on Ajax calls from working, so it's a bit of a show stopper.
The problem is this line in the js/custom.js file:
define(["jquery"],function($) {
It seems to be clashing with something in Moodle core. The purpose of the code within this define block is to set up an event handler for the button that switches the display style of the courses in the block. That can just as easily be done by triggering the code after the page has finished loading, so changing that line to this:
$(document).ready(function($) {
Fixes the problem and doesn't seem to have any side effects (though I have only done minimal testing).
There is a conflict between the plugin code and Moodle 3.6: when the block is added in the dashboard, none of the dropdown menus will work.