mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
hall: fixed load-more, sort contribs by lvl
This commit is contained in:
parent
eb5a9150ab
commit
5ccd8c4b85
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue