mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00

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.
12 lines
265 B
Text
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>
|