Commit 6736a9a55323703f45b2ccf4f3c600ca67c9f61f

Authored by Jose Pinto
1 parent ca13fa1e85
Exists in master

errores tipeo

1   -angular.module('focaAbmChofer', ['ngRoute', 'focaModal', 'ui.bootstrap']);
2 1 \ No newline at end of file
  2 +angular.module('focaAbmChofer', ['ngRoute', 'focaModal', 'ui.bootstrap']);
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 + ]);
... ... @@ -16,4 +16,4 @@ angular.module('focaAbmChofer')
16 16 templateUrl: 'src/views/foca-abm-choferes-item.html'
17 17 });
18 18 }
19   - ]);
20 19 \ No newline at end of file
  20 + ]);
src/views/foca-abm-choferes-item.html
... ... @@ -56,4 +56,4 @@
56 56 <button class="btn btn-default" ng-click="cancelar()">Cancelar</button>
57 57 </div>
58 58 </div>
59   -</form>
60 59 \ No newline at end of file
  60 +</form>
src/views/foca-abm-choferes-listado.html
... ... @@ -53,4 +53,4 @@
53 53 >
54 54 Salir
55 55 </a>
56   -</div>
57 56 \ No newline at end of file
  57 +</div>