Commit aab55e8570aff9c373c184bd901bd0aa93df1396
1 parent
6eccd5edf7
Exists in
master
inicial
Showing
1 changed file
with
6 additions
and
5 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -614,11 +614,12 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 614 | 614 | return; |
| 615 | 615 | } |
| 616 | 616 | if ($scope.notaPedido.articulosNotaPedido.length !== 0) { |
| 617 | - focaModalService.confirm('Se perderan los productos ingresados').then(function(data) { | |
| 618 | - if (data) { | |
| 619 | - abrirModal(); | |
| 620 | - } | |
| 621 | - }); | |
| 617 | + focaModalService.confirm('Se perderan los productos ingresados') | |
| 618 | + .then(function(data) { | |
| 619 | + if (data) { | |
| 620 | + abrirModal(); | |
| 621 | + } | |
| 622 | + }); | |
| 622 | 623 | } else if (validarNotaRemitada()) { |
| 623 | 624 | abrirModal(); |
| 624 | 625 | } |