Skip to content
Snippets Groups Projects
Commit 86409a2a authored by kimth's avatar kimth
Browse files

Adjust comments for Sequence js

parent bb55a763
No related branches found
No related tags found
No related merge requests found
......@@ -96,10 +96,9 @@ class @Sequence
goto: (event) =>
event.preventDefault()
# Links from within the coureware uses <a class='seqnav' href="n">...</a>
if $(event.target).hasClass 'seqnav'
if $(event.target).hasClass 'seqnav' # Links from courseware <a class='seqnav' href='n'>...</a>
new_position = $(event.target).attr('href')
else
else # Tab links generated by backend template
new_position = $(event.target).data('element')
if (1 <= new_position) and (new_position <= @num_contents)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment