Merge pull request #2545 from Vlevo/patch-1

Update ControlBarView.coffee
This commit is contained in:
Nick Winter 2015-03-19 15:15:18 -07:00
commit d5b69cb811

View file

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