mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 04:59:40 +00:00
Expand functions to make them readable
This commit is contained in:
parent
800c270944
commit
e37c60e0f2
1 changed files with 6 additions and 2 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue