# Collapse Navigation # In the Moodle Navigation Menu the 'courses' menu is open by default, however this can be hard to navigate. Using javascript in the theme it is possible to collapse the menu by default. ## To install Javascript ## Clone files from 'javascript' folder to /theme/mytheme/javascript ## To configure ## Add the following to /theme/mytheme/config.php /** List of javascript files that need to be included on each page */ $THEME->javascripts = array(); $THEME->javascripts_footer = array(); $THEME->javascripts_footer = array('jquery-1.7.2.min','datatables.min','datatables.plugins','inboxtable','turnitintool','lib');
aferenz/moodle-theme-javascript_collapse_course_navigation
These files are necessary to auto-collapse the courses menu in the Navigation menu on Moodle.
JavaScript