From 0aa7179ae79ef3d3ba71fd448b93c4d99f88d7ff Mon Sep 17 00:00:00 2001 From: Rey Reyes Date: Tue, 26 Apr 2016 10:49:49 -0430 Subject: [PATCH] Fix delete professor not reloading issue, total lecture day issue --- app/partials/professor/professor_create.html | 4 ++-- app/partials/professor/professor_list.controller.js | 2 +- app/partials/report/course_assist.controller.js | 3 ++- app/partials/report/section_assist.controller.js | 2 ++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/partials/professor/professor_create.html b/app/partials/professor/professor_create.html index 195eb38..f80281b 100644 --- a/app/partials/professor/professor_create.html +++ b/app/partials/professor/professor_create.html @@ -68,8 +68,8 @@ + ng-pattern="/\d{4}-\d{7}/" maxlength="13" + placeholder="0424-1239876"/> El Formato del Número de Teléfono es incorrecto. diff --git a/app/partials/professor/professor_list.controller.js b/app/partials/professor/professor_list.controller.js index 7dd9889..9452554 100644 --- a/app/partials/professor/professor_list.controller.js +++ b/app/partials/professor/professor_list.controller.js @@ -102,7 +102,7 @@ }; $scope.ok = function (urlLo) { - $state.go('ProfessorList'); + $state.reload(); $scope.modalInstance.dismiss('cancel'); }; diff --git a/app/partials/report/course_assist.controller.js b/app/partials/report/course_assist.controller.js index 97cf6ce..908430c 100644 --- a/app/partials/report/course_assist.controller.js +++ b/app/partials/report/course_assist.controller.js @@ -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; }, diff --git a/app/partials/report/section_assist.controller.js b/app/partials/report/section_assist.controller.js index 567d8b6..a194883 100644 --- a/app/partials/report/section_assist.controller.js +++ b/app/partials/report/section_assist.controller.js @@ -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 {