Task Grade Fix

This commit is contained in:
Sagi Dayan 2015-08-02 20:09:00 +03:00
parent f94bf35343
commit 414d3b7215
2 changed files with 3 additions and 3 deletions

View file

@ -118,7 +118,7 @@ angular.module('SeHub')
}; };
$scope.submitGrade = function(event){ $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.show(
$mdDialog.alert() $mdDialog.alert()
.title('Thanks For Grading') .title('Thanks For Grading')

View file

@ -19,10 +19,10 @@
Project Name: {{group.projectName}} Project Name: {{group.projectName}}
</div> </div>
<div> <div>
Grade : {{task.garde.grade}} Grade : {{task.grade.grade}}
</div> </div>
<div> <div>
<md-slider flex class="md-primary" md-discrete ng-model="task.garde.grade" step="1" min="1" max="100" aria-label="rating" ng-disabled="!isMaster"> <md-slider flex class="md-primary" md-discrete ng-model="task.grade.grade" step="1" min="1" max="100" aria-label="rating" ng-disabled="!isMaster">
</md-slider> </md-slider>
</div> </div>
<div layout="row" ng-if='isMaster'> <div layout="row" ng-if='isMaster'>