Commit 86409a2a by kimth

Adjust comments for Sequence js

parent bb55a763
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment