Commit 9374474ca0961d0b5a671e0a4321acdea5ff4480
1 parent
c8541c3de1
Exists in
master
espacios
Showing
2 changed files
with
5 additions
and
4 deletions
Show diff stats
.gitignore
src/js/controller.js
| ... | ... | @@ -5,7 +5,8 @@ angular.module('focaAgendarVisita') |
| 5 | 5 | 'focaModalService', 'focaSeguimientoService', |
| 6 | 6 | function($scope, focaAgendarVisitaService, $location, $timeout, |
| 7 | 7 | $uibModal, focaBotoneraLateralService, $filter, focaLoginService, |
| 8 | - focaModalService, focaSeguimientoService) { | |
| 8 | + focaModalService, focaSeguimientoService | |
| 9 | + ) { | |
| 9 | 10 | $scope.focused = 0; |
| 10 | 11 | $scope.rol = 1; |
| 11 | 12 | $scope.visita = {}; |
| ... | ... | @@ -71,9 +72,9 @@ angular.module('focaAgendarVisita') |
| 71 | 72 | |
| 72 | 73 | $scope.guardar = function() { |
| 73 | 74 | var rol; |
| 74 | - if($scope.visita.visitante.rol === 1){ | |
| 75 | + if ($scope.visita.visitante.rol === 1) { | |
| 75 | 76 | rol = 'Nota de pedido'; |
| 76 | - } else if($scope.visita.visitante.rol === 2){ | |
| 77 | + } else if ($scope.visita.visitante.rol === 2) { | |
| 77 | 78 | rol = 'Cobranza'; |
| 78 | 79 | } else { |
| 79 | 80 | rol = ($scope.rol === 1) ? 'Nota de pedido' : 'Cobranza'; |