Commit 6736a9a55323703f45b2ccf4f3c600ca67c9f61f
1 parent
ca13fa1e85
Exists in
master
errores tipeo
Showing
5 changed files
with
9 additions
and
9 deletions
Show diff stats
src/js/app.js
src/js/controller.js
... | ... | @@ -19,9 +19,9 @@ angular.module('focaAbmChofer') |
19 | 19 | }; |
20 | 20 | |
21 | 21 | $scope.solicitarConfirmacion = function(chofer) { |
22 | - focaModalService.confirm('¿Está seguro que desea borrar el chofer '+ | |
23 | - chofer.nombre + ' ?').then( function(confirmed) { | |
24 | - if(confirmed){ | |
22 | + focaModalService.confirm('¿Está seguro que desea borrar el chofer ' + | |
23 | + chofer.nombre + ' ?').then(function(confirmed) { | |
24 | + if(confirmed) { | |
25 | 25 | focaAbmChoferService.deleteChofer(chofer.id); |
26 | 26 | $scope.choferes.splice($scope.choferes.indexOf(chofer), 1); |
27 | 27 | } |
... | ... | @@ -39,7 +39,7 @@ angular.module('focaAbmChofer') |
39 | 39 | $scope.transportistas = []; |
40 | 40 | |
41 | 41 | focaAbmChoferService.getChofer($routeParams.id).then(function(res) { |
42 | - if (res.data) $scope.chofer = res.data; | |
42 | + if(res.data) $scope.chofer = res.data; | |
43 | 43 | }); |
44 | 44 | |
45 | 45 | focaAbmChoferService.getTransportistas().then(function(res) { |
... | ... | @@ -59,4 +59,4 @@ angular.module('focaAbmChofer') |
59 | 59 | }; |
60 | 60 | |
61 | 61 | } |
62 | - ]); | |
63 | 62 | \ No newline at end of file |
63 | + ]); |
src/js/route.js
src/views/foca-abm-choferes-item.html