From d51531d84f333d26431b7935a0fd904b8d25ad2a Mon Sep 17 00:00:00 2001 From: Jose Pinto Date: Wed, 13 Mar 2019 16:02:24 -0300 Subject: [PATCH] ok modal-prompt --- src/js/controller.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 82786e1..a291707 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -117,7 +117,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', $scope.inicial = angular.copy($scope.notaPedido); } - $scope.$watch('notaPedido', function(newValue, oldValue) { + $scope.$watch('notaPedido', function(newValue) { focaBotoneraLateralService.setPausarData({ label: 'notaPedido', val: newValue @@ -159,7 +159,8 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', $scope.saveLoading = true; var notaPedido = { id: $scope.notaPedido.id, - fechaCarga: new Date($scope.notaPedido.fechaCarga).toISOString().slice(0, 19).replace('T', ' '), + fechaCarga: new Date($scope.notaPedido.fechaCarga) + .toISOString().slice(0, 19).replace('T', ' '), idVendedor: $scope.notaPedido.vendedor.id, idCliente: $scope.notaPedido.cliente.COD, nombreCliente: $scope.notaPedido.cliente.NOM, @@ -651,7 +652,11 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', $scope.seleccionarObservaciones = function() { focaModalService - .prompt('Ingrese observaciones', $scope.notaPedido.observaciones, true) + .prompt({ + titulo: 'Ingrese observaciones', + value: $scope.notaPedido.observaciones, + textarea: true + }) .then(function(observaciones) { $scope.notaPedido.observaciones = observaciones; }); -- 1.9.1