Skip to content

Commit

Permalink
Merge 0f2c8dc into 7076532
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewJakubowicz committed Jul 24, 2018
2 parents 7076532 + 0f2c8dc commit 7f95288
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/home-view.jade
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ block content
a.login-button(data-i18n="login.log_in")

if !serverConfig.static
h3.text-center(data-i18n="new_home.computer_science")
h3#concepts.text-center(data-i18n="new_home.computer_science")
#courses-row.row
- var conceptsSeen = {};
for course, courseIndex in view.courses.models
Expand Down
11 changes: 11 additions & 0 deletions app/views/HomeView.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ module.exports = class HomeView extends RootView
@openModalView(new CreateAccountModal({startOnPath: 'teacher'}))
super()

afterInsert: ->
super()
# scroll to the current hash, once everything in the browser is set up
# Duplicate of `AboutView` method.
f = =>
return if @destroyed
link = $(document.location.hash)
if link.length
@scrollToLink(document.location.hash, 0)
_.delay(f, 100)

destroy: ->
$(window).off 'resize', @fitToPage
super()
Expand Down

0 comments on commit 7f95288

Please sign in to comment.