Commit 24c7093d71bef134185148a207d2d0d7124377ce
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master See merge request !19
Showing
3 changed files
Show diff stats
src/js/controllerCisterna.js
... | ... | @@ -4,11 +4,12 @@ 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 | 8 | $scope.editar = false; |
8 | 9 | $scope.now = new Date(); |
9 | 10 | $scope.cisterna = {}; |
10 | 11 | |
11 | - $scope.focused = 1; | |
12 | + $scope.focused = $scope.nuevo ? 1 : 2; | |
12 | 13 | $scope.next = function(key) { |
13 | 14 | if (key === 13) $scope.focused++; |
14 | 15 | }; |
src/views/foca-abm-cisterna-item.html