fixed a few typos preventing JS execution :-D

This commit is contained in:
Petr Skoda 2010-07-19 13:55:50 +00:00
parent 5cc70f32c7
commit 59cab43678
2 changed files with 3 additions and 4 deletions

View File

@ -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');

View File

@ -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>';