From 8aae6ab8693143a96faa0abfc22c1656e3cbe97d Mon Sep 17 00:00:00 2001 From: Matan Bar Yosef Date: Mon, 29 Jun 2015 20:28:20 +0300 Subject: [PATCH] - myProject - location path fixed --- templates/js/controllers/myProjectsController.js | 10 +--------- templates/views/myProjects.html | 4 ++-- 2 files changed, 3 insertions(+), 11 deletions(-) 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}}