Cross off completed bonfires in list of all bonfires in modal

This commit is contained in:
Nathan Leniz
2015-02-22 17:36:43 +09:00
parent 90caed3369
commit b5a449cb1c
4 changed files with 19 additions and 13 deletions

View File

@ -206,14 +206,18 @@ module.exports = {
return bonfires.map(function(elem) {
return {
name: elem.name,
difficulty: elem.difficulty
difficulty: elem.difficulty,
_id: elem._id
}
})
.sort(function(a, b) {
return a.difficulty - b.difficulty;
})
.map(function(elem) {
return elem.name;
.map (function(elem) {
return {
name : elem.name,
_id: elem._id
}
});
},