Commit d51531d84f333d26431b7935a0fd904b8d25ad2a

Authored by Jose Pinto
1 parent c1e863be80
Exists in master and in 1 other branch develop

ok modal-prompt

Showing 1 changed file with 8 additions and 3 deletions   Show diff stats
src/js/controller.js
... ... @@ -117,7 +117,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
117 117 $scope.inicial = angular.copy($scope.notaPedido);
118 118 }
119 119  
120   - $scope.$watch('notaPedido', function(newValue, oldValue) {
  120 + $scope.$watch('notaPedido', function(newValue) {
121 121 focaBotoneraLateralService.setPausarData({
122 122 label: 'notaPedido',
123 123 val: newValue
... ... @@ -159,7 +159,8 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
159 159 $scope.saveLoading = true;
160 160 var notaPedido = {
161 161 id: $scope.notaPedido.id,
162   - fechaCarga: new Date($scope.notaPedido.fechaCarga).toISOString().slice(0, 19).replace('T', ' '),
  162 + fechaCarga: new Date($scope.notaPedido.fechaCarga)
  163 + .toISOString().slice(0, 19).replace('T', ' '),
163 164 idVendedor: $scope.notaPedido.vendedor.id,
164 165 idCliente: $scope.notaPedido.cliente.COD,
165 166 nombreCliente: $scope.notaPedido.cliente.NOM,
... ... @@ -651,7 +652,11 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
651 652  
652 653 $scope.seleccionarObservaciones = function() {
653 654 focaModalService
654   - .prompt('Ingrese observaciones', $scope.notaPedido.observaciones, true)
  655 + .prompt({
  656 + titulo: 'Ingrese observaciones',
  657 + value: $scope.notaPedido.observaciones,
  658 + textarea: true
  659 + })
655 660 .then(function(observaciones) {
656 661 $scope.notaPedido.observaciones = observaciones;
657 662 });