This commit is contained in:
Matan Bar Yosef 2015-08-03 22:39:18 +03:00
parent de1c0d9b5f
commit f93d3ecbd7

View file

@ -69,25 +69,7 @@ angular.module('SeHub')
$scope.reviewTask = function(taskId, groupId) $scope.reviewTask = function(taskId, groupId)
{ {
//tasks/overview/:taskId/:submitterId/:gId', { $location.path('/tasks/overview/' + taskId + '/' + groupId + '/' + groupId);
// if(task.isPersonal) // As Lecturer
// {
$location.path('/tasks/overview/' + taskId + '/' + groupId + '/' + groupId);
// }
// else // it's a project task
// {
// apiService.getProjectsByCourse(token, task.courseId).success(function(data)
// {
// for(var i = 0; i < $scope.user.projects_id_list.length; i++)
// for(var j = 0; j < data.length; j++)
// if($scope.user.projects_id_list[i] === data[j].id.toString())
// $location.path('/tasks/overview/' + task.id + '/' + data[j].id + '/' + data[j].id);
// }).error(function(err)
// {
// console.log(err.message);
// });
// }
} }
$scope.gotoTask = function(task) $scope.gotoTask = function(task)