Fixed the goals view, which wasn't being properly shown.

This commit is contained in:
Scott Erickson 2014-02-15 17:36:27 -08:00
parent 0fb2018f2a
commit be83b5420f

View file

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