Skip to content

Commit

Permalink
Fix warnings in student skills wheel view - WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Apr 23, 2017
1 parent 213fdf3 commit 0d7196e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main/social/skills_wheel.php
Expand Up @@ -20,6 +20,9 @@
$htmlHeadXtra[] = api_get_js('d3/d3.v3.5.4.min.js');
$htmlHeadXtra[] = api_get_js('d3/colorbrewer.js');
$htmlHeadXtra[] = api_get_js('d3/jquery.xcolor.js');
$htmlHeadXtra[] = api_get_js('jquery.jsPlumb.all.js');
$htmlHeadXtra[] = api_get_js('jqueryui-touch-punch/jquery.ui.touch-punch.min.js');
$htmlHeadXtra[] = api_get_js('skills.js');

$tpl = new Template(null, false, false);

Expand Down Expand Up @@ -52,6 +55,13 @@
Display::tag('p', null, ['id' => 'description', 'class' => 'form-control-static'])
);

$type = 'read'; //edit
$tree = $skill->get_skills_tree($userId, null, true);
$skill_visualizer = new SkillVisualizer($tree, $type);
$tpl->assign('skill_visualizer', $skill_visualizer);
//$html = $skill_visualizer->return_html();
//$tpl->assign('html', $html);

$tpl->assign('dialogForm', $dialogForm->returnForm());

$url = api_get_path(WEB_AJAX_PATH)."skill.ajax.php?a=get_skills_tree_json&load_user=$userId";
Expand Down

0 comments on commit 0d7196e

Please sign in to comment.