diff --git a/gulpfile.js b/gulpfile.js index 482982d..c97d0d4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -21,7 +21,9 @@ var paths = { dist: 'dist/' }; -gulp.task('uglify', gulpSequence('clean', ['templates', 'uglify-spec'], 'uglify-app')); +gulp.task('uglify', function(callback) { + gulpSequence('clean', ['templates', 'uglify-spec'], 'uglify-app')(callback); +}); gulp.task('templates', function() { return pump( diff --git a/src/js/controller.js b/src/js/controller.js index aee181b..2b63280 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -673,10 +673,6 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', focaModalService .prompt(observacion) .then(function(observaciones) { - $scope.$broadcast('addCabecera', { - label: 'Observaciones:', - valor: observaciones - }); $scope.notaPedido.observaciones = observaciones; }); }; diff --git a/src/views/nota-pedido.html b/src/views/nota-pedido.html index 0c40bba..fb8e629 100644 --- a/src/views/nota-pedido.html +++ b/src/views/nota-pedido.html @@ -6,6 +6,11 @@ class="mb-0 col-lg-12" busqueda="seleccionarNotaPedido" > + {{notaPedido.observaciones}}