Commit be633bc7cc05216756c8b1c1bc873ac3c0a33373

Authored by Jose Pinto
1 parent 5b8426e39b
Exists in master and in 2 other branches develop, lab

camelcase

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
src/js/controller.js
... ... @@ -70,7 +70,7 @@ angular.module('focaActivarHojaRuta')
70 70 );
71 71 };
72 72  
73   - $scope.activarHojaRuta = function(hoja_ruta) {
  73 + $scope.activarHojaRuta = function(hojaRuta) {
74 74 validarChoferDisponible().then(function(hojaRutaAsignada) {
75 75  
76 76 if (hojaRutaAsignada) {
... ... @@ -90,8 +90,8 @@ angular.module('focaActivarHojaRuta')
90 90  
91 91 function activar() {
92 92 focaActivarHojaRutaService
93   - .activarHojaRuta(hoja_ruta.id, $scope.chofer)
94   - .then(function(hojaRuta) {
  93 + .activarHojaRuta(hojaRuta.id, $scope.chofer)
  94 + .then(function() {
95 95 init();
96 96 focaModalService.alert('Hoja de ruta activada');
97 97 });