hall: fixed load-more, sort contribs by lvl

This commit is contained in:
Tyler Renelle 2014-01-05 19:58:19 -07:00
parent eb5a9150ab
commit 5ccd8c4b85
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ api.ensureAdmin = function(req, res, next) {
api.getHeroes = function(req,res,next) {
User.find({'contributor.level':{$ne:null}})// {$exists:true} causes terrible performance http://goo.gl/GCxzC9
.select('contributor backer balance profile.name')
.sort('contributor.text')
.sort('-contributor.level')
.exec(function(err, users){
if (err) return next(err);
res.json(users);

View file

@ -82,7 +82,7 @@ script(type='text/ng-template', id='partials/options.social.hall.heroes.html')
markdown(ng-model='hero.contributor.contributions', target='_blank')
script(type='text/ng-template', id='partials/options.social.hall.patrons.html')
table.table.table-striped(infinite-scroll="loadMore()",infinite-scroll-distance="3")
table.table.table-striped(infinite-scroll="loadMore()")
tr
thead
tr