mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
Let's just show 200 leaderboard entries for now until we have paging.
This commit is contained in:
parent
c3c5782fd9
commit
b0238d74a4
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ module.exports = class LadderTabView extends CocoView
|
|||
class LeaderboardData
|
||||
constructor: (@level, @team, @session) ->
|
||||
_.extend @, Backbone.Events
|
||||
@topPlayers = new LeaderboardCollection(@level, {order:-1, scoreOffset: HIGHEST_SCORE, team: @team, limit: if @session then 10 else 20})
|
||||
limit = 200 # if @session then 10 else 20 # We need to figure out paging.
|
||||
@topPlayers = new LeaderboardCollection(@level, {order:-1, scoreOffset: HIGHEST_SCORE, team: @team, limit: limit})
|
||||
@topPlayers.fetch()
|
||||
@topPlayers.comparator = (model) ->
|
||||
return -model.get('totalScore')
|
||||
|
|
Loading…
Reference in a new issue