Fix issue returning to ladder when playing course-ladder levels outside of a course arena

This commit is contained in:
Nick Winter 2015-11-24 08:36:57 -08:00
parent 65890130bb
commit d675e14f59

View file

@ -444,10 +444,9 @@ module.exports = class HeroVictoryModal extends ModalView
viewArgs.push @courseInstanceID if @courseInstanceID viewArgs.push @courseInstanceID if @courseInstanceID
else if @level.get('type', true) is 'course-ladder' else if @level.get('type', true) is 'course-ladder'
leagueID = @getQueryVariable 'league' leagueID = @getQueryVariable 'league'
link = "/play/ladder/"+@level.get('slug')+"/course/"+leagueID link = "/play/ladder/#{@level.get('slug')}"
Backbone.Mediator.publish 'router:navigate', { link += "/course/#{leagueID}" if leagueID
route: link Backbone.Mediator.publish 'router:navigate', route: link
}
return return
else else
viewClass = require 'views/play/CampaignView' viewClass = require 'views/play/CampaignView'