MDL-43504 Javascript: Frontpage collapsing should not depend on enableajax

This is an oversight, but we should not depend on the enableajax setting
which we're trying to deprecate.
This commit is contained in:
Andrew Nicols
2014-02-17 11:40:48 +08:00
parent c8d383fdcd
commit 5b7fbdb938
+1 -1
View File
@@ -1383,7 +1383,7 @@ class core_course_renderer extends plugin_renderer_base {
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');