Fix delete professor not reloading issue, total lecture day issue

This commit is contained in:
Rey Reyes
2016-04-26 10:49:49 -04:30
parent ebbb0577c8
commit 0aa7179ae7
4 changed files with 7 additions and 4 deletions

View File

@@ -32,6 +32,7 @@
function (value){
angular.forEach (value.students,
function (valued){
vm.lectures = valued.assistance;
angular.forEach (valued.assistanceTotal,
function (valueda){
if (valueda.assistance) {
@@ -41,7 +42,7 @@
}
});
});
});
});
vm.total = vm.positive + vm.negative;
vm.percentage = (vm.positive/vm.total)*100;
},

View File

@@ -30,8 +30,10 @@
angular.forEach (vm.section.students,
function (value){
vm.lectures = value.assistance;
angular.forEach (value.assistanceTotal,
function (valued){
if (valued.assistance) {
vm.positive++;
} else {