diff --git a/templates/js/controllers/myProjectsController.js b/templates/js/controllers/myProjectsController.js index c55bf1d..9ca67a8 100644 --- a/templates/js/controllers/myProjectsController.js +++ b/templates/js/controllers/myProjectsController.js @@ -25,19 +25,11 @@ angular.module('SeHub') { console.log("Error: " + err.message); }); - } $scope.goToProject = function(projectId) { - for (var i = 0; i < $scope.myProjects; i++) - { - if($scope.myProjects.id === projectId) - { - console.log("project ID: " + projectId) - $location.path('/project/' + projectId); - } - }; + $location.path('/project/' + projectId); } var init = function() diff --git a/templates/views/myProjects.html b/templates/views/myProjects.html index 895d0cc..28d2a14 100644 --- a/templates/views/myProjects.html +++ b/templates/views/myProjects.html @@ -13,7 +13,7 @@
-

{{project.projectName}}

+ {{project.projectName}}
@@ -24,7 +24,7 @@ -

{{project.projectName}}

+ {{project.projectName}}