Skip to content

Commit

Permalink
fixed a few typos preventing JS execution :-D
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 19, 2010
1 parent 5cc70f3 commit 59cab43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions user/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
$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');

Expand Down
4 changes: 3 additions & 1 deletion user/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public function user_files_tree() {

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>';
Expand Down

0 comments on commit 59cab43

Please sign in to comment.