Commit 62ccc3b54b93128118fe021e836d4763f17fa0f2
1 parent
34091f2d68
Exists in
master
Codigo solo editable si es nuevo
Showing
3 changed files
with
4 additions
and
1 deletions
 
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