I got Marginalia forum annotation tool working for Moodle 2.5+ site, BUT...

Re: I got Marginalia forum annotation tool working for Moodle 2.5+ site, BUT...

by Frankie Kam -
Number of replies: 3
Picture of Plugin developers

Hi Jamie

You are a genius! I took your tip, installed Firebug 1.11.4 on my Firefox 17.0. When I got to the forum screen with the Marginalia annotations, I turned on the Firebug console with F12 and clicked on the Error tab. Sure enough something showed up:

TypeError: margin.mouseleave is not a function.

Hmm....! mouseleave? I know mouseover, but mouseleave? So I Googled around.
Apparantly, according to http://help.dottoro.com/ljewsllu.php,
mouseleave() works only on Internet Explorer!
But I am using Chrome. Which kinda explains the problems.

I then decided to prototype/experiment my way out of this problem and proceeded to change line 189 of 
file MoodleMarginalia.js from:
margin.mouseleave( function() { margin.removeClass( 'hover' ); } );

to
margin.mouseout( function() { margin.removeClass( 'hover' ); } );

Eureka. it works. Now both the HTMLeditor and File Manager load properly. 

Thanks!
Frankie Kam

 

In reply to Frankie Kam

Re: I got Marginalia forum annotation tool working for Moodle 2.5+ site, BUT...

by Jamie Pratt -

Nice work Frankie!

In reply to Frankie Kam

Re: I got Marginalia forum annotation tool working for Moodle 2.5+ site, BUT...

by Frankie Kam -
Picture of Plugin developers

For those who want to see it in 'action' on my Moodle 2.5.x site.

Cheers! Frankie Kam, Malaysia.

In reply to Frankie Kam

Re: I got Marginalia forum annotation tool working for Moodle 2.5+ site, BUT...

by Frankie Kam -
Picture of Plugin developers

For those who want to see it in 'action' on my Moodle 2.5.x site.

Cheers! Frankie Kam, Malaysia.