Commit 539cd053 by thedeadparrot

Prevent bad sequential titles

Don't try to set the title if we don't have anything in
the sequential

LMS-2168
parent cb8818a4
......@@ -21,7 +21,9 @@ class @Sequence
updatePageTitle: ->
# update the page title to include the current section
document.title = @link_for(@position).data('title') + @base_page_title
position_link = @link_for(@position)
if position_link and position_link.data('title')
document.title = position_link.data('title') + @base_page_title
hookUpProgressEvent: ->
$('.problems-wrapper').bind 'progressChanged', @updateProgress
......
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