mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Expand functions to make them readable
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user