Changeset 7507


Ignore:
Timestamp:
11/13/12 13:43:50 (11 years ago)
Author:
eduardow
Message:

Ticket #3182 - Inconsistencia de virgulas no campo para.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/js/draw_api.js

    r7444 r7507  
    39183918 
    39193919                //AO DIGITAR ENTER, ";", "," "  " 
    3920                 if(e.keyCode == 13 || e.keyCode == 9 || (e.keyCode == 188 && !e.shiftKey) || (e.keyCode == 191 && !e.shiftKey) ){ 
     3920                if(e.keyCode == 13 || e.keyCode == 9 || (e.keyCode == 191 && !e.shiftKey) ){ 
    39213921                        if(e.keyCode == 13){ 
    39223922                                e.preventDefault(); 
     
    39283928                                if(e.keyCode != 9) 
    39293929                                        e.preventDefault(); 
    3930                                 draw_email_box(input.val(), input); 
     3930 
     3931                                draw_email_box(input.val(), input);  
     3932 
    39313933                                if(input.hasClass("box-input")){ 
    39323934                                        input.remove(); 
     
    39433945                        return; 
    39443946                } 
    3945                 //AO DIGITAR " " 
    3946                 /*if(e.keyCode == 32){ 
    3947                         if(!input.val().length){ 
    3948                                 e.preventDefault(); 
    3949                                 return; 
    3950                         }else{ 
    3951                                 var texto = input.val(); 
    3952                                 texto = texto.substring(0, getPosition(input[0])); 
    3953                                 if(texto.split('"').length-1 == 0){ 
    3954                                         if(input.val().split('"').length-1 == 0){ 
    3955                                                 e.preventDefault(); 
    3956                                                 e.stopPropagation(); 
    3957                                                 draw_email_box(input.val(), input); 
    3958                                                 input.val(""); 
    3959                                                 if(input.hasClass("box-input")){ 
    3960                                                         input.remove(); 
    3961                                                         focusing.focus(); 
    3962                                                         return; 
    3963                                                 } 
    3964                                                 return; 
    3965                                         } 
    3966                                 } 
    3967                         } 
    3968                 }*/ 
     3947                 
    39693948                //AO DIGITAR ">" 
    39703949                if(e.keyCode == 190 && e.shiftKey && input.val().length == getPosition(input[0])){ 
     
    39803959                } 
    39813960                setTimeout(function(){ 
     3961                // CASO FOR PRESSIONADO "," OU ";", É CRIADA UMA CAIXINHA. 
    39823962                        if(input.val()[input.val().length-1] == ";"){ 
    39833963                                draw_email_box(input.val().substring(0, input.val().length-1), input); 
    39843964                                input.val(""); 
    3985                         } 
     3965                        } else if(input.val()[input.val().length-1] == ","){  
     3966                draw_email_box(input.val().substring(0, input.val().length-1), input);  
     3967                input.val("");  
     3968            } 
    39863969                }, 100); 
    39873970                //INPUT AUTO RESIZE      
Note: See TracChangeset for help on using the changeset viewer.