Skip to content

Commit

Permalink
MDL-43504 Javascript: Frontpage collapsing should not depend on enabl…
Browse files Browse the repository at this point in the history
…eajax

This is an oversight, but we should not depend on the enableajax setting
which we're trying to deprecate.
  • Loading branch information
andrewnicols committed Feb 17, 2014
1 parent 692d247 commit b44b0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/renderer.php
Expand Up @@ -1503,7 +1503,7 @@ protected function coursecat_subcategories(coursecat_helper $chelper, $coursecat
protected function coursecat_include_js() {
global $CFG;
static $jsloaded = false;
if (!$jsloaded && $CFG->enableajax) {
if (!$jsloaded) {
// We must only load this module once.
$this->page->requires->yui_module('moodle-course-categoryexpander',
'Y.Moodle.course.categoryexpander.init');
Expand Down

0 comments on commit b44b0fd

Please sign in to comment.