Adjust comments for Sequence js

This commit is contained in:
kimth
2012-08-29 22:11:26 -04:00
parent bb55a76379
commit 86409a2a26

View File

@@ -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)