From f93d3ecbd771d6e98eff8a4db49174847cb7c09b Mon Sep 17 00:00:00 2001 From: Matan Bar Yosef Date: Mon, 3 Aug 2015 22:39:18 +0300 Subject: [PATCH] - finish --- templates/js/controllers/homeController.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/templates/js/controllers/homeController.js b/templates/js/controllers/homeController.js index eabc663..032a7d1 100644 --- a/templates/js/controllers/homeController.js +++ b/templates/js/controllers/homeController.js @@ -69,25 +69,7 @@ angular.module('SeHub') $scope.reviewTask = function(taskId, groupId) { - //tasks/overview/:taskId/:submitterId/:gId', { - - // 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); - // }); - // } + $location.path('/tasks/overview/' + taskId + '/' + groupId + '/' + groupId); } $scope.gotoTask = function(task)