mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Commit client-side code for acdfe7c
This commit is contained in:
parent
acdfe7c1c4
commit
504e65ec27
1 changed files with 2 additions and 1 deletions
|
@ -168,7 +168,8 @@ module.exports = class LadderTabView extends CocoView
|
||||||
team = _.find @teams, name: histogramWrapper.data('team-name')
|
team = _.find @teams, name: histogramWrapper.data('team-name')
|
||||||
histogramData = null
|
histogramData = null
|
||||||
$.when(
|
$.when(
|
||||||
url = "/db/level/#{@level.get('slug')}/histogram_data?team=#{team.name.toLowerCase()}"
|
level = "#{@level.get('original')}.#{@level.get('version').major}"
|
||||||
|
url = "/db/level/#{level}/histogram_data?team=#{team.name.toLowerCase()}"
|
||||||
url += '&leagues.leagueID=' + @options.league.id if @options.league
|
url += '&leagues.leagueID=' + @options.league.id if @options.league
|
||||||
$.get url, {cache: false}, (data) -> histogramData = data
|
$.get url, {cache: false}, (data) -> histogramData = data
|
||||||
).then =>
|
).then =>
|
||||||
|
|
Loading…
Reference in a new issue