mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed the goals view, which wasn't being properly shown.
This commit is contained in:
parent
0fb2018f2a
commit
be83b5420f
1 changed files with 2 additions and 2 deletions
|
@ -46,11 +46,11 @@ module.exports = class GoalsView extends View
|
||||||
li.prepend($('<i></i>').addClass(stateIconMap[state.status]))
|
li.prepend($('<i></i>').addClass(stateIconMap[state.status]))
|
||||||
list.append(li)
|
list.append(li)
|
||||||
goals.push goal
|
goals.push goal
|
||||||
@$el.toggle goals.length > 0
|
@$el.removeClass('secret') if goals.length > 0
|
||||||
|
|
||||||
render: ->
|
render: ->
|
||||||
super()
|
super()
|
||||||
@$el.addClass('hide').addClass('expanded')
|
@$el.addClass('secret').addClass('expanded')
|
||||||
|
|
||||||
onSetLetterbox: (e) ->
|
onSetLetterbox: (e) ->
|
||||||
@$el.toggle not e.on
|
@$el.toggle not e.on
|
||||||
|
|
Loading…
Reference in a new issue