Commit b1ce2ece05f5ab0a34080950033c0cd5839c6caf
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master See merge request !28
Showing
1 changed file
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) { |