Changeset 7507 for branches/2.4/expressoMail1_2/js/draw_api.js
- Timestamp:
- 11/13/12 13:43:50 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/expressoMail1_2/js/draw_api.js
r7444 r7507 3918 3918 3919 3919 //AO DIGITAR ENTER, ";", "," " " 3920 if(e.keyCode == 13 || e.keyCode == 9 || (e.keyCode == 1 88 && !e.shiftKey) || (e.keyCode == 191 && !e.shiftKey) ){3920 if(e.keyCode == 13 || e.keyCode == 9 || (e.keyCode == 191 && !e.shiftKey) ){ 3921 3921 if(e.keyCode == 13){ 3922 3922 e.preventDefault(); … … 3928 3928 if(e.keyCode != 9) 3929 3929 e.preventDefault(); 3930 draw_email_box(input.val(), input); 3930 3931 draw_email_box(input.val(), input); 3932 3931 3933 if(input.hasClass("box-input")){ 3932 3934 input.remove(); … … 3943 3945 return; 3944 3946 } 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 3969 3948 //AO DIGITAR ">" 3970 3949 if(e.keyCode == 190 && e.shiftKey && input.val().length == getPosition(input[0])){ … … 3980 3959 } 3981 3960 setTimeout(function(){ 3961 // CASO FOR PRESSIONADO "," OU ";", É CRIADA UMA CAIXINHA. 3982 3962 if(input.val()[input.val().length-1] == ";"){ 3983 3963 draw_email_box(input.val().substring(0, input.val().length-1), input); 3984 3964 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 } 3986 3969 }, 100); 3987 3970 //INPUT AUTO RESIZE
Note: See TracChangeset
for help on using the changeset viewer.