Let's just show 200 leaderboard entries for now until we have paging.

This commit is contained in:
Nick Winter 2014-03-08 11:50:10 -08:00
parent c3c5782fd9
commit b0238d74a4

View file

@ -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')