Commit d48b31fbad1bdbe4a8b05c579909b5997df3145e
1 parent
bda155f607
Exists in
master
Observaciones en la cabecera
Showing
1 changed file
with
12 additions
and
5 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -712,13 +712,20 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 712 | 712 | }; |
| 713 | 713 | |
| 714 | 714 | $scope.seleccionarObservaciones = function() { |
| 715 | + var observacion = { | |
| 716 | + titulo: 'Ingrese Observaciones', | |
| 717 | + value: $scope.notaPedido.observaciones, | |
| 718 | + maxlength: 155, | |
| 719 | + textarea: true | |
| 720 | + }; | |
| 721 | + | |
| 715 | 722 | focaModalService |
| 716 | - .prompt({ | |
| 717 | - titulo: 'Ingrese observaciones', | |
| 718 | - value: $scope.notaPedido.observaciones, | |
| 719 | - textarea: true | |
| 720 | - }) | |
| 723 | + .prompt(observacion) | |
| 721 | 724 | .then(function(observaciones) { |
| 725 | + $scope.$broadcast('addCabecera', { | |
| 726 | + label: 'Observaciones:', | |
| 727 | + valor: observaciones | |
| 728 | + }); | |
| 722 | 729 | $scope.notaPedido.observaciones = observaciones; |
| 723 | 730 | }); |
| 724 | 731 | }; |