Commit 6ee3665d8851821c7396c51a672bb901258d99bf
1 parent
14c1200cc8
Exists in
master
and in
1 other branch
ok disabled codigo cisterna si no es nuevo
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/js/controllerCisterna.js
| ... | ... | @@ -4,7 +4,7 @@ angular.module('focaAbmVehiculo') |
| 4 | 4 | 'focaModalService', 'focaBotoneraLateralService', '$timeout', '$window', |
| 5 | 5 | function($scope, focaAbmVehiculoService, $routeParams, $location, $uibModal, |
| 6 | 6 | focaModalService, focaBotoneraLateralService, $timeout, $window) { |
| 7 | - $scope.nuevo = ($routeParams.id > 0) ? false : true; | |
| 7 | + $scope.nuevo = ($routeParams.idx > -1) ? false : true; | |
| 8 | 8 | $scope.editar = false; |
| 9 | 9 | $scope.now = new Date(); |
| 10 | 10 | $scope.cisterna = {}; |
| ... | ... | @@ -25,7 +25,7 @@ angular.module('focaAbmVehiculo') |
| 25 | 25 | }); |
| 26 | 26 | |
| 27 | 27 | if($routeParams.idx !== -1) { |
| 28 | - $scope.cisterna = [$routeParams.idx] | |
| 28 | + $scope.cisterna = [$routeParams.idx]; | |
| 29 | 29 | focaAbmVehiculoService |
| 30 | 30 | .getCisternas($routeParams.idVehiculo) |
| 31 | 31 | .then(function(res) { |