Update ControlBarView.coffee

added a clause for the "older campaigns"
This commit is contained in:
Vlevo 2015-03-19 16:02:53 -06:00
parent aee68e899a
commit 49b32a8ff1

View file

@ -82,6 +82,9 @@ module.exports = class ControlBarView extends CocoView
campaign = @level.get 'campaign'
@homeLink += '/' + campaign
@homeViewArgs.push campaign
else if @level.get('type', true) in ['campaign']
@homeLink = c.homeLink = '/play-old'
@homeViewClass = 'views/MainPlayView'
else
@homeLink = c.homeLink = '/'
@homeViewClass = 'views/HomeView'