Commit 7364164301f1d45cdbb3cfecdc63d8f9b4ad904e

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

Merge branch 'master' into 'develop'

Master

See merge request !27
src/js/controller.js
... ... @@ -538,7 +538,7 @@ angular.module('focaBusquedaCliente')
538 538 $scope.select(cliente, true);
539 539 });
540 540 };
541   -
  541 +
542 542 function crearCopia(){
543 543 var cliente = angular.copy($scope.cliente);
544 544  
... ... @@ -633,20 +633,15 @@ angular.module('focaBusquedaCliente')
633 633 $scope.selectedClientes = 0;
634 634 }
635 635 }
636   - //
637 636 function validateEmails(emails) {
638 637 var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
639 638 var arr = emails.split(',');
640 639 var result = true;
641   -
642 640 arr.forEach(function(email) {
643 641 var val = String(email).trim().toLowerCase();
644   -
645 642 if (!re.test(val)) result = false;
646 643 });
647   -
648 644 return result;
649 645 }
650   -
651 646 }
652 647 ]);
src/views/foca-busqueda-cliente-modal.html
... ... @@ -408,7 +408,7 @@
408 408 <input
409 409 type="text"
410 410 class="form-control form-control-sm col-2"
411   - maxlength="2"
  411 + limite-numeros-max="2"
412 412 ng-model="cliente.cuit1"
413 413 ng-required="true"
414 414 ng-keypress="pasarCampoCuit(1)"
... ... @@ -421,6 +421,7 @@
421 421 type="text"
422 422 class="form-control form-control-sm col-5"
423 423 maxlength="8"
  424 + limite-numeros-max="8"
424 425 ng-keypress="pasarCampoCuit(2)"
425 426 ng-model="cliente.cuit2"
426 427 ng-required="true"
... ... @@ -433,6 +434,7 @@
433 434 type="text"
434 435 class="form-control form-control-sm col-2"
435 436 maxlength="1"
  437 + limite-numeros-max="1"
436 438 ng-keypress="pasarCampoCuit(3)"
437 439 ng-model="cliente.cuit3"
438 440 ng-required="true"