Ported over UI code

This commit is contained in:
Keith Holliday
2017-06-08 16:03:20 -07:00
parent 5d0fe0aac3
commit 7422d020b1
8 changed files with 92 additions and 7 deletions

View File

@@ -36,6 +36,9 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
},
});
Analytics.updateUser();
if (task.group.approval.required) task.group.approval.requested = true;
$rootScope.$broadcast('task:scored', {task: task});
}
$scope.score = function(task, direction) {