Expand functions to make them readable

This commit is contained in:
Blade Barringer
2015-07-24 14:24:12 -05:00
parent 800c270944
commit e37c60e0f2

View File

@@ -291,11 +291,15 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
})
$scope.selectAll = function(){
$scope.search.group = _.transform($scope.groups, function(m,g){m[g._id] = true});
$scope.search.group = _.transform($scope.groups, function(searchPool, group){
searchPool[group._id] = true;
});
}
$scope.selectNone = function(){
$scope.search.group = _.transform($scope.groups, function(m,g){m[g._id] = false});
$scope.search.group = _.transform($scope.groups, function(searchPool, group){
searchPool[group._id] = false;
});
}
$scope.shouldShow = function(task, list, prefs){