mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
Fix lesson time estimate dropdown in NewHomeView
This commit is contained in:
parent
3f8652d9a9
commit
2a69ca3774
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ module.exports = class NewHomeView extends RootView
|
|||
middle: {'introduction-to-computer-science': '1-3', 'computer-science-5': '7-10', default: '5-8', total: '25-35 hours (about one semester)'}
|
||||
high: {'introduction-to-computer-science': '1', 'computer-science-5': '6-9', default: '5-6', total: '22-28 hours (about one semester)'}
|
||||
level = if e then $(e.target).val() else 'middle'
|
||||
@$el.find('#courses-container .course-details').each ->
|
||||
@$el.find('#courses-row .course-details').each ->
|
||||
slug = $(@).data('course-slug')
|
||||
duration = levels[level][slug] or levels[level].default
|
||||
$(@).find('.course-duration .course-hours').text duration
|
||||
|
|
Loading…
Reference in a new issue