Merge pull request #2477 from edx/diana/fix-sequence-titles

Prevent bad sequential titles
This commit is contained in:
Diana Huang
2014-02-05 12:49:31 -05:00

View File

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