Moodle, Including JQuery on dashboard page

Moodle, Including JQuery on dashboard page

by Bobby White -
Number of replies: 1
What is the best way to include JQuery on the dashboard page (my/index.php).

So that version of JQuery is available to that page, and all the custom blocks I have created?


Average of ratings: -
In reply to Bobby White

Re: Moodle, Including JQuery on dashboard page

by Jonathan P. -

Hey,

Inside the current theme in use,  the 'config.php' file should be the answer.
Either find the following code or add it :


/* List of javascript files that needs to be included on each page */

$THEME->javascripts_footer = array(
    'jquery-3.0.0.min',
    'anotherScript.js'

     .......

);


Cheers,

Jonathan.