Commit 318a16cd9b4eedc90e943a2c27727ff97744012e
Exists in
master
Merge branch 'master' into 'develop'
Master See merge request !32
Showing
1 changed file
Show diff stats
src/js/controller.js
| ... | ... | @@ -283,9 +283,9 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl', |
| 283 | 283 | |
| 284 | 284 | // remito.litros = litros; |
| 285 | 285 | // $scope.hojaRuta.litros = $scope.hojaRuta.litros + litros; |
| 286 | - $scope.cargarCisterna(remito.id).then(function() { | |
| 286 | + $scope.cargarCisterna(remito.id).then(function(response) { | |
| 287 | 287 | $scope.hojaRuta.remitosTabla.push(remito); |
| 288 | - $scope.seleccionarRemitos(); | |
| 288 | + if (!response) $scope.seleccionarRemitos(); | |
| 289 | 289 | }, function() { |
| 290 | 290 | $scope.seleccionarRemitos(); |
| 291 | 291 | }); |