General developer forum

Moodle 3.3 amd module changes?

 
Picture of Christos Savva
Moodle 3.3 amd module changes?
 

Hello,

I was wondering if anything changed on the way AMD modules are working.

I had a plugin on Moodle 3.0 containing a simple js file which was working fine.

As soon as I updated to Moodle 3.3 the js seems to stopped working.

Also i cant see anything in the console since I was logging stuff when my plugin was initialized.

log.debug('Plugin started');
I have tried to rebuild the amd module using grunt but no luck.

define(['jquery', 'core/log'], function($, log) {
   "use strict";
  log.debug('Plugin started');
  return { init: function() {
        log.debug("In init function");
        
        ....
        ....
  }
}

Did anything change on Moodle 3.3?

 
Average of ratings: -
Picture of Christos Savva
Re: Moodle 3.3 amd module changes?
 

Ok false alarm, I just found the problem.


Form API has changed and now the classes are not applied to the actual input element for to a div wrapping the form control.


Thanks

 
Average of ratings: -