moodle/admin/tool/lp/templates/competencies_tree.mustache
Damyon Wiese 7a3953dd52 MDL-52030 cbe: Fix drag and drop for manage competencies page
Previously I was attaching the drag / drop handlers to the list items,
which were nested which caused many wierd behaviours. Now I attach them only
to the span in the lists which are never nested.
2016-04-18 10:58:41 +08:00

12 lines
265 B
Text

<li data-id="{{id}}">
<span {{^visible}}class="disabled"{{/visible}} draggable="true">
{{shortname}}
</span>
{{#haschildren}}
<ul>
{{#children}}
{{> tool_lp/competencies_tree }}
{{/children}}
</ul>
{{/haschildren}}
</li>