mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
fixed a few typos preventing JS execution :-D
This commit is contained in:
parent
5cc70f32c7
commit
59cab43678
@ -42,9 +42,6 @@ $PAGE->set_heading($title);
|
||||
$PAGE->set_pagelayout('mydashboard');
|
||||
$PAGE->set_pagetype('user-files');
|
||||
|
||||
$module = array('name'=>'core_user', 'fullpath'=>'/user/module.js');
|
||||
$PAGE->requires->js_init_call('M.core_user.init_tree', null, false, $module);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->box_start('generalbox');
|
||||
|
||||
|
@ -39,7 +39,9 @@ class core_user_renderer extends plugin_renderer_base {
|
||||
|
||||
public function render_user_files_tree(user_files_tree $tree) {
|
||||
$htmlid = 'user_files_tree_'.uniqid();
|
||||
$this->page->requires->js_init_call('M.user_core.init_tree', array(false, $htmlid));
|
||||
$module = array('name'=>'core_user', 'fullpath'=>'/user/module.js');
|
||||
$this->page->requires->js_init_call('M.core_user.init_tree', array(false, $htmlid), false, $module);
|
||||
|
||||
$html = '<div id="'.$htmlid.'">';
|
||||
$html .= $this->htmllize_tree($tree, $tree->dir);
|
||||
$html .= '</div>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user