diff --git a/gulpfile.js b/gulpfile.js index bfa62fe..c1c9d21 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -40,7 +40,7 @@ gulp.task('uglify', ['templates'], function() { 'tmp/views.js' ]), concat('foca-abm-vehiculo.js'), - replace("['ngRoute', 'focaModal', 'ui.bootstrap']", '[]'), + replace("['ngRoute', 'focaModal', 'ui.bootstrap', 'focaBotoneraLateral']", '[]'), replace("src/views/", ''), gulp.dest(paths.tmp), rename('foca-abm-vehiculo.min.js'), diff --git a/src/js/controllerCisterna.js b/src/js/controllerCisterna.js index d82490d..afba5cf 100644 --- a/src/js/controllerCisterna.js +++ b/src/js/controllerCisterna.js @@ -6,11 +6,7 @@ angular.module('focaAbmVehiculo') focaModalService, focaBotoneraLateralService, $timeout, $window) { $scope.editar = false; $scope.now = new Date(); - $scope.cisterna = { - cisternaCarga: { - articulo: {} - } - }; + $scope.cisterna = {}; $scope.focused = 1; $scope.next = function(key) { @@ -63,7 +59,6 @@ angular.module('focaAbmVehiculo') validaCodigoCapacidad().then(function() { $scope.cisterna.idVehiculo = parseInt($routeParams.idVehiculo); delete $scope.cisterna.vehiculo; - delete $scope.cisterna.cisternaCarga.articulo; if($routeParams.idTemp != undefined) { //SI SE EDITA UNA CISTERNA LOCALMENTE