From 414d3b7215c2af6ce18f2f7a4d6ddb988c327987 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sun, 2 Aug 2015 20:09:00 +0300 Subject: [PATCH] Task Grade Fix --- templates/js/controllers/taskController.js | 2 +- templates/views/task.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/js/controllers/taskController.js b/templates/js/controllers/taskController.js index 3619d56..ea62d41 100644 --- a/templates/js/controllers/taskController.js +++ b/templates/js/controllers/taskController.js @@ -118,7 +118,7 @@ angular.module('SeHub') }; $scope.submitGrade = function(event){ - apiService.submitGrade(token, taskId, groupId, $scope.task.garde.grade).success(function(data){ + apiService.submitGrade(token, taskId, groupId, $scope.task.grade.grade).success(function(data){ $mdDialog.show( $mdDialog.alert() .title('Thanks For Grading') diff --git a/templates/views/task.html b/templates/views/task.html index eccf7af..15eb302 100644 --- a/templates/views/task.html +++ b/templates/views/task.html @@ -19,10 +19,10 @@ Project Name: {{group.projectName}}
- Grade : {{task.garde.grade}} + Grade : {{task.grade.grade}}
- +