mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -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]))
|
||||
list.append(li)
|
||||
goals.push goal
|
||||
@$el.toggle goals.length > 0
|
||||
@$el.removeClass('secret') if goals.length > 0
|
||||
|
||||
render: ->
|
||||
super()
|
||||
@$el.addClass('hide').addClass('expanded')
|
||||
@$el.addClass('secret').addClass('expanded')
|
||||
|
||||
onSetLetterbox: (e) ->
|
||||
@$el.toggle not e.on
|
||||
|
|
Loading…
Reference in a new issue