Changeset 6334
- Timestamp:
- 05/29/12 08:55:21 (12 years ago)
- Location:
- sandbox/2.4.1-3
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.1-3/expressoMail1_2/js/common_functions.js
r6204 r6334 775 775 } 776 776 777 function search_emails(value ){777 function search_emails(value, data){ 778 778 var resize = false; 779 779 resize = resize_borders(); … … 815 815 connector.loadScript("search"); 816 816 if (typeof(EsearchE) == 'undefined' || typeof(ttree) == 'undefined'){ 817 setTimeout("search_emails('"+value+"' )",500);817 setTimeout("search_emails('"+value+"', '"+data+"')",500); 818 818 return false; 819 819 } 820 EsearchE.showForms(value );820 EsearchE.showForms(value, data); 821 821 } 822 822 -
sandbox/2.4.1-3/expressoMail1_2/js/doiMenuData.js
r5866 r6334 195 195 items: menuToolsItems 196 196 }); 197 197 var reComplexEmail = /<([^<]*)>[\s]*$/; 198 $.contextMenu({ 199 selector: ".box", 200 autoHide:true, 201 items: { 202 "add" : {name:"Adicao Rapida de Contato", icon : "quick-add",callback: function(key, opt){ var fname = $(opt.$trigger).find("input").val().split('"')[1];ccQuickAddOne.showList(','+fname+', ,'+$.trim($(opt.$trigger).find("input").val()).match(reComplexEmail)[1]); }}, 203 "remove" : {name:"Remover este contato", icon:"delete-box",callback: function(key, opt){ $(opt.$trigger).remove(); }}, 204 "sep1": "---------", 205 "quick_search" : {name:"Pesquisa Rapida de Mensagens", icon: "quick-search-contact",callback: function(key, opt){ search_emails($.trim($(opt.$trigger).find("input").val()).match(reComplexEmail)[1]); }}, 206 "full_search" : {name:"Pesquisa Avancada de Mensagens", icon: "quick-search-contact",callback: function(key, opt){ search_emails("", $.trim($(opt.$trigger).find("input").val()).match(reComplexEmail)[1]);}} 207 } 208 }); 198 209 199 210 function updateLabelsColumn(messageInfo) { -
sandbox/2.4.1-3/expressoMail1_2/js/draw_api.js
r6281 r6334 3500 3500 } 3501 3501 3502 function draw_email_box(name, email, valid, parent){ 3503 var edit = parent.clone(); 3504 edit.css("display","none"); 3505 edit.removeClass("email-text"); 3506 DataLayer.render("../prototype/modules/mail/templates/emailBox.ejs", {valid : valid, value : (name? name : email)}, function(html){ 3507 parent.before(html); 3508 parent.parent().find("div:last").click(function(){ 3509 $(".email-area div").removeClass("box-selected"); 3510 $(this).addClass("box-selected"); 3511 }).append(edit); 3512 }); 3513 } 3514 3515 function input_binds(input, ID){ 3516 3517 input.click(function(e){ 3518 if(e.target == $(this)[0]){ 3519 $(this).find("div").removeClass("box-selected"); 3520 } 3521 $(this).find(".email-text").focus(); 3522 }).focusout(function(){ 3523 $(this).find("div").removeClass("box-selected"); 3524 }); 3525 var mySource = new Array(); 3526 var myArray = contacts.split(","); 3527 for(var i in myArray){ 3528 var teste = myArray[i].split(";"); 3529 if(teste.length > 1) 3530 mySource.push({name : teste[0], email: teste[1], value : (teste[0] +" - "+teste[1])}); 3531 else 3532 mySource.push({name : "", email: teste[0], value :teste[0]}); 3533 } 3534 input.find("input").bind( "keydown", function( e ) { 3535 input_text = $(e.target); 3536 if(parseInt(preferences.use_dynamic_contacts)){ 3502 //DESENHO DAS CAIXA DE EMAIL 3503 function draw_email_box(input_data, location){ 3504 if(input_data != ""){ 3505 var box_data = valid_emails(input_data); 3506 DataLayer.render("../prototype/modules/mail/templates/emailBox.ejs", box_data, function(html){ 3507 var newBox = location.before(html).prev(); 3508 box_actions(newBox); 3509 }); 3510 } 3511 } 3512 3513 function valid_emails(email){ 3514 var ContactBox = {name:"", email:"", valid : false}; 3515 var reSimpleEmail = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[_a-z0-9-]+(\.[_a-z0-9-]+)+$/; 3516 var reComplexEmail = /<([^<]*)>[\s]*$/; 3517 var validation = email.split('"'); 3518 3519 //FUNÇÃO QUE VALIDA OS DADOS QUANDO O EMAIL É DIGITADO COM ("NOME SOBRENOME" <Email@dominio.com>) 3520 var complexValidation = function(complexMail){ 3521 var Objct = {}; 3522 if($.trim(complexMail[1]).match(reComplexEmail)){ 3523 if($.trim(complexMail[1]).match(reComplexEmail).length){ 3524 Objct['email'] = $.trim(complexMail[1]).match(reComplexEmail)[1]; 3525 } 3526 }else{ 3527 Objct['email'] = $.trim(complexMail[1]); 3528 } 3529 Objct['name'] = complexMail[0]; 3530 Objct['valid'] = reSimpleEmail.test(Objct['email'].toLowerCase()); 3531 return Objct; 3532 } 3533 switch (validation.length) { 3534 //PEGA TODO O CONTEUDO E SETA COMO SE FOSSE O EMAIL 3535 case 1: 3536 ContactBox.email = email; 3537 ContactBox.valid = reSimpleEmail.test(email.toLowerCase()); 3538 break; 3539 //CORRIGI ERRO DE DIGITAÇÃO COMO ( huahua"<huhau@hauhau.com>) ou (hahahaha"huahua@email.com) ou ainda (hahahaha"huahua@ema il.com) 3540 case 2: 3541 ContactBox = complexValidation(validation); 3542 break; 3543 //RECEBE O EMAIL CORRETAMENTE SÓ VALIDA POSSIVEIS ERROS COMO O DE CIMA E OS CORRIGI CASO ACONTEÇAM 3544 case 3: 3545 //RETIRA O PRIMEIRO INDICE QUE FICOU "INUTIL" 3546 validation.shift(); 3547 ContactBox = complexValidation(validation); 3548 break; 3549 //SE EXISTIREM MAIS DO QUE 2 (") 3550 default: 3551 if($.trim(validation[validation.length-1]).match(reComplexEmail)){ 3552 if($.trim(validation[validation.length-1]).match(reComplexEmail).length){ 3553 ContactBox.mail = $.trim(validation[validation.length-1]).match(reComplexEmail)[1]; 3554 } 3555 }else{ 3556 ContactBox.mail = $.trim(complexMail[1]); 3557 } 3558 ContactBox.valid = reSimpleEmail.test(ContactBox.mail.toLowerCase()); 3559 } 3560 return ContactBox; 3561 } 3562 3563 //EVENTO DOS INPUTS PARA - CC - CCO 3564 function input_keydowns(input, ID){ 3565 input.keydown(function(e){ 3566 var reEmail = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[_a-z0-9-]+(\.[_a-z0-9-]+)+$/; 3567 var reEmail2 = /<([^<]*)>[\s]*$/; 3568 var focusing = input.parent().find(".email-text"); 3569 //SE OS CONTATOS DINAMICOS ESTAO ATIVOS 3570 if(parseInt(preferences.use_dynamic_contacts) && !input.hasClass("box-input")){ 3571 //SELECIONA O CONTATO E EVITA OUTROS COMANDOS 3537 3572 if ( e.keyCode === $.ui.keyCode.TAB && $( this ).data( "autocomplete" ).menu.active ) { 3538 3573 e.preventDefault(); 3574 return false; 3539 3575 } 3576 3577 //FECHA OS CONTATOS DINÂMICOS 3540 3578 if( (e.keyCode == 27) && $( this ).data( "autocomplete" ).menu.active ){ 3541 3579 e.stopPropagation(); 3542 3580 e.preventDefault(); 3543 3581 } 3544 } 3545 3582 3583 //SELECIONA O CONTATO E EVITA OUTROS COMANDOS 3584 if(e.keyCode == $.ui.keyCode.ENTER && $( this ).data( "autocomplete" ).menu.active){ 3585 e.preventDefault(); 3586 return false; 3587 } 3588 } 3589 //BUSCA COM A TECLA F9 3546 3590 if((e.keyCode) == 120){ 3547 3591 emQuickSearch($(this).val(), "."+$(this).parents("tr:first").attr('class').split("-")[0], ID, undefined, true); … … 3549 3593 return false; 3550 3594 } 3551 var reEmail = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[_a-z0-9-]+(\.[_a-z0-9-]+)+$/; 3552 var reEmail2 = /<([^<]*)>[\s]*$/; 3595 3553 3596 3554 3597 if(e.keyCode == 13 || e.keyCode == 9 || (e.keyCode == 188 && !e.shiftKey) || (e.keyCode == 191 && !e.shiftKey) ){ 3555 if(input_text.val() != ""){ 3598 if(e.keyCode == 13){ 3599 e.preventDefault(); 3600 } 3601 if(input.val() != ""){ 3556 3602 if(e.keyCode != 9) 3557 3603 e.preventDefault(); 3558 draw_email_box(undefined, input_text.val(), reEmail.test(input_text.val()), $(this)); 3559 } 3560 input_text.val(""); 3604 draw_email_box(input.val(), input); 3605 if(input.hasClass("box-input")){ 3606 input.remove(); 3607 focusing.focus(); 3608 return; 3609 } 3610 } 3611 if(input.length) 3612 input.val(""); 3613 } 3614 if((e.keyCode == 8 || e.keyCode == 37) && input.val() == "" && input.prev().hasClass("box")){ 3615 e.preventDefault(); 3616 input.prev().focus(); 3617 return; 3561 3618 } 3562 3619 3563 3620 if(e.keyCode == 32){ 3564 if(!input _text.val().length){3621 if(!input.val().length){ 3565 3622 e.preventDefault(); 3566 3623 return; 3567 3624 }else{ 3568 var texto = input _text.val();3569 texto = texto.substring(0, getPosition(input _text[0]));3625 var texto = input.val(); 3626 texto = texto.substring(0, getPosition(input[0])); 3570 3627 if(texto.split('"').length-1 == 0){ 3571 if(input _text.val().split('"').length-1 == 0){3628 if(input.val().split('"').length-1 == 0){ 3572 3629 e.preventDefault(); 3573 draw_email_box(undefined, input_text.val(), reEmail.test(input_text.val()), $(this)); 3574 input_text.val(""); 3630 draw_email_box(input.val(), input); 3631 input.val(""); 3632 if(input.hasClass("box-input")){ 3633 input.remove(); 3634 focusing.focus(); 3635 return; 3636 } 3575 3637 return; 3576 3638 } … … 3579 3641 } 3580 3642 3581 if(e.keyCode == 190 && e.shiftKey && input_text.val().length == getPosition(input_text[0])){ 3582 var oi = input_text.val().split('"'); 3583 input_text.val(input_text.val()+">"); 3584 if(oi.length == 2){ 3585 if(oi[0].length == 0){ 3586 draw_email_box(undefined, oi[1], reEmail.test(oi[1]), $(this)); 3587 }else{ 3588 draw_email_box(oi[0], oi[1]+">", (reEmail.test(((oi[1]+">").match(/<([^<]*)>[\s]*$/)[1]))), $(this)); 3589 } 3590 }else if(oi.length == 3){ 3591 oi.shift(); 3592 if(oi[0].length == 0){ 3593 draw_email_box(undefined, oi[1], reEmail.test(oi[1]), $(this)); 3594 }else{ 3595 draw_email_box(oi[0], oi[1]+">", (reEmail.test(((oi[1]+">").match(/<([^<]*)>[\s]*$/)[1]))), $(this)); 3596 } 3597 }else{ 3598 draw_email_box(oi[oi.length-2], oi[oi.length-1]+">", (reEmail.test(((oi[oi.length-1]+">").match(/<([^<]*)>[\s]*$/)[1]))), $(this)); 3599 } 3643 if(e.keyCode == 190 && e.shiftKey && input.val().length == getPosition(input[0])){ 3644 input.val(input.val()+">"); 3645 draw_email_box(input.val(), input); 3600 3646 e.preventDefault(); 3601 input_text.val(""); 3602 } 3603 3647 input.val(""); 3648 if(input.hasClass("box-input")){ 3649 input.remove(); 3650 focusing.focus(); 3651 return; 3652 } 3653 } 3654 3655 //INPUT AUTO RESIZE 3604 3656 setTimeout(function(){ 3605 input _text.css("width", 15+(input_text.val().length * 8));3606 input. scrollTo(":last");3657 input.css("width", 15+(input.val().length * 9)); 3658 input.parent().scrollTo(":last"); 3607 3659 }, 100); 3660 }) 3661 //AO SAIR DO FOCO MONTAGEM DA CAIXA DE EMAIL 3662 .focusout(function(){ 3663 if($(input).val() != "") 3664 draw_email_box(input.val(), input); 3665 if(input.hasClass("box-input")) 3666 input.remove(); 3667 input.val(""); 3608 3668 }); 3609 input.keydown(function(e){ 3610 if($(this).find("div").length == 0 || $(this).find(".email-text").val().length) 3611 return; 3612 if(e.keyCode == 37){ 3613 if($(this).find(".box-selected").length){ 3614 $(this).find(".box-selected").prev().trigger("click"); 3615 }else if($(this).find("div").length && !($(".email-text").val().length)){ 3616 $(this).find("div:last").trigger("click"); 3617 } 3618 }else if (e.keyCode == 39){ 3619 if($(this).find(".box-selected").length){ 3620 if($(this).find(".box-selected").next().hasClass("email-text")) 3621 $(this).find(".box-selected").removeClass("box-selected"); 3669 //SE FOR EDIÇÃO DE EMAILS RECALCULA O INPUT E SETA O FOCO 3670 if(input.hasClass("box-input")){ 3671 input.trigger("keydown"); 3672 input.focus(); 3673 } 3674 } 3675 3676 //EVENTOS DA CAIXA 3677 function box_actions(box){ 3678 //AO PRESSIONAR UMA TECLA COM A CAIXA SELECIONADA 3679 box.keydown(function(e){ 3680 switch (e.keyCode) { 3681 case $.ui.keyCode.LEFT: 3682 //VERIFICA SE EXISTE ALGUMA CAIXA A ESQUERDA 3683 if($(this).prev().hasClass("box")) 3684 $(this).removeClass("box-selected").prev().focus(); 3685 break; 3686 case $.ui.keyCode.RIGHT: 3687 //VERIFICA SE EXISTE ALGUMA CAIXA A DIREITA 3688 if($(this).next().hasClass("box")) 3689 $(this).removeClass("box-selected").next().focus(); 3690 //SENAO FOCO O INPUT DO EMAIL 3622 3691 else 3623 $(this).find(".box-selected").next().trigger("click"); 3624 } 3625 }else if(e.keyCode == 36){ 3626 if($(this).find("div").length){ 3627 $(this).find("div:first").trigger("click"); 3628 } 3629 }else if(e.keyCode == 35){ 3630 if($(this).find("div").length){ 3631 $(this).find("div:last").trigger("click"); 3632 } 3633 }else if(e.keyCode == 46){ 3634 if($(this).find(".box-selected").next().hasClass("email-box")){ 3635 var oi = $(this).find(".box-selected").next(); 3636 } 3637 $(this).find(".box-selected").remove(); 3638 oi.addClass("box-selected"); 3639 }else if(e.keyCode == 8){ 3640 if($(this).find(".box-selected").length){ 3641 if($(this).find(".box-selected").prev().hasClass("email-box")){ 3642 var oi = $(this).find(".box-selected").prev(); 3643 } 3644 $(this).find(".box-selected").remove(); 3645 oi.addClass("box-selected"); 3646 }else if($(this).find("div").length){ 3647 $(this).find("div:last").trigger("click"); 3648 } 3649 } 3692 $(this).removeClass("box-selected").next().focus(); 3693 break; 3694 case $.ui.keyCode.HOME: 3695 //SELECIONO A PRIMEIRA CAIXA 3696 $(this).parents(".email-area").find("div:first").focus(); 3697 break; 3698 case $.ui.keyCode.END: 3699 //SELECIONO A ULTIMA CAIXA 3700 $(this).parents(".email-area").find("div:last").focus(); 3701 break; 3702 case $.ui.keyCode.DELETE: 3703 //VERIFICA SE EXISTE ALGUMA CAIXA A DIREITA 3704 if($(this).next().hasClass("box")) 3705 $(this).next().focus(); 3706 //SENAO FOCO O INPUT DO EMAIL 3707 else 3708 $(this).next().focus(); 3709 //REMOVO ESTA CAIXA 3710 $(this).remove(); 3711 break; 3712 case $.ui.keyCode.BACKSPACE: 3713 //VERIFICA SE EXISTE ALGUMA CAIXA A ESQUERDA 3714 if($(this).prev().hasClass("box")) 3715 $(this).removeClass("box-selected").prev().focus(); 3716 //SENAO HOUVER VERIFICA SE EXISTE ALGUMA CAIXA A DIREITA 3717 else if($(this).next().hasClass("box")) 3718 $(this).next().focus(); 3719 //SENAO HOUVER NEM A DIREITA NEM A ESQUERDA SETO O FOCO NO INPUT DO EMAIL 3720 else 3721 $(this).next().focus(); 3722 //REMOVO ESTA CAIXA 3723 $(this).remove(); 3724 e.preventDefault(); 3725 break; 3726 case $.ui.keyCode.ENTER: 3727 e.preventDefault(); 3728 $(this).trigger("dblclick"); 3729 break; 3730 } 3731 }) 3732 //AO FAZER UM DUPLO CLICK NA CAIXA 3733 .dblclick(function(e){ 3734 var input = $(this).find("input").clone(); 3735 input.css("display" , "inline-block"); 3736 $(this).before(input); 3737 input_keydowns(input, currentTab); 3738 $(this).remove(); 3739 //CLICK SIMPLES NA CAIXA 3740 }).click(function(){ 3741 $(this).focus(); 3742 //AO DAR O FOCO NA CAIXA 3743 }).focus(function(){ 3744 $(this).parent().find("div").removeClass("box-selected"); 3745 $(this).addClass("box-selected"); 3746 }).focusout(function(){ 3747 $(this).removeClass("box-selected"); 3650 3748 }); 3749 } 3750 3751 //MOSTRA OS DETALHES DAS CAIXA DE EMAIL NOS CAMPOS PARA - CC - CCO 3752 function show_detais(img){ 3753 3754 } 3755 3756 //FUNÇÃO QUE "SETA" OS BINDS DOS CAMPOS PARA - CC - CCO 3757 function input_binds(div, ID){ 3758 3759 //AO CLICAR NA DIV SETA O FOCO NO INPUT 3760 div.click(function(e){ 3761 if(e.target == $(this)[0]){ 3762 $(this).find("input:last").focus(); 3763 $(this).find("div").removeClass("box-selected"); 3764 } 3765 }) 3766 3767 //AO SAIR DO FOCO DA DIV ELE RETIRA TODAS AS CLASSES DE CAIXAS SELECIONADAS 3768 .focusout(function(e){ 3769 if(!$(e.target).parents(".email-area:first").length) 3770 $(this).find("div").removeClass("box-selected"); 3771 }); 3772 3773 //MAKE KEYDOWN 3774 input_keydowns(div.find("input"), ID); 3775 3776 3777 //VERIFICA PREFERENCIA DE CONTATOS DINÂMICOS ESTA ATIVA 3651 3778 if(parseInt(preferences.use_dynamic_contacts)){ 3652 input.find("input").autocomplete({ 3779 //PREPARAÇÃO DA ARRAY DOS CONTATOS DINÂMICOS 3780 var dynamicContactList = new Array(); 3781 var myArray = contacts.split(","); 3782 for(var i in myArray){ 3783 var dynamicContact = myArray[i].split(";"); 3784 if(dynamicContact.length > 1) 3785 dynamicContactList.push({name : dynamicContact[0], email: dynamicContact[1], value : (dynamicContact[0] +" - "+dynamicContact[1])}); 3786 else 3787 dynamicContactList.push({name : "", email: dynamicContact[0], value :dynamicContact[0]}); 3788 } 3789 3790 //INSERÇÃO DO AUTO COMPLETE AO INPUT 3791 div.find("input").autocomplete({ 3653 3792 minLength: 0, 3654 3793 source: function( request, response ) { 3655 3794 response( $.ui.autocomplete.filter( 3656 mySource, extractLast( request.term ) ) );3795 dynamicContactList, extractLast( request.term ) ) ); 3657 3796 }, 3658 3797 focus: function() { 3659 3798 return false; 3660 3799 }, 3800 3801 //EVENTO AO SELECIONAR UM CONTATO DINÂMICO 3661 3802 select: function( event, ui ) { 3662 var terms = mySplit( this.value ); 3663 terms.pop(); 3664 terms.push( (ui.item.name != "" ? "\""+ui.item.name+"\" " : "") + (ui.item.email ? "<"+ui.item.email+">" : "")); 3665 terms.push( "" ); 3666 this.value = terms.join( ", " ); 3803 event.preventDefault(); 3804 $(this).val(""); 3805 draw_email_box(ui.item.name ? "\""+ui.item.name+"\" <"+ui.item.email+">" : ui.item.email, $(this)); 3667 3806 return false; 3668 3807 }, 3669 3808 autoFocus: true 3670 }).data( "autocomplete" )._renderItem = function( ul, item ) { 3671 ul.css({"min-width":"15%", "max-height" : "150px", "overflow-y" : "auto"}); 3809 }) 3810 3811 //MONTAGEM DA LISTA DE CONTATOS DINÂMICOS DO AUTO COMPLETE 3812 .data( "autocomplete" )._renderItem = function( ul, item ) { 3813 ul.css({"min-width":"20%", "max-height" : "150px", "overflow-y" : "auto"}); 3672 3814 if( $(ul).find("li").length > 10 ){ 3673 3815 return; … … 3683 3825 alert("Excluir?") 3684 3826 }); 3685 /* return $( "<li></li>" )3686 .data( "item.autocomplete", item )3687 .append( "<a>" + item.name + " - " + item.email + "</a>" )3688 .appendTo( ul ); */3689 3827 }; 3690 3828 } 3691 input.parents("tr:first").find("button").button().click(function(){ 3829 3830 //FUNÇÃO DOS BOTÕES PARA - CC - CCO 3831 div.parents("tr:first").find("button").button().click(function(){ 3692 3832 emQuickSearch($(this).parents("tr:first").find("input").val(), "."+$(this).parents("tr:first").attr('class').split("-")[0], ID, undefined, true); 3693 3833 }); … … 3697 3837 connector.loadScript("color_palette"); 3698 3838 connector.loadScript('wfolders'); 3839 connector.loadScript("ccQuickAdd"); 3699 3840 3700 3841 if(typeof(RichTextEditor) == 'undefined' || typeof(ColorPalette) == 'undefined' || typeof(wfolders) == 'undefined') -
sandbox/2.4.1-3/expressoMail1_2/js/main.js
r6276 r6334 2393 2393 //stringEmail = content.find('[name="input_to"]').val(); 2394 2394 var stringEmail = ""; 2395 var array = content.find(".to-tr").find(". email-box");2395 var array = content.find(".to-tr").find(".box"); 2396 2396 $.each(array, function(index, value){ 2397 2397 stringEmail += $(value).find("input").val() + ","; … … 2400 2400 if ( content.find('[name="input_cco"]').length){ 2401 2401 if(content.find(".cco-tr").css("display") != "none"){ 2402 var array = content.find(".cco-tr").find(". email-box");2402 var array = content.find(".cco-tr").find(".box"); 2403 2403 $.each(array, function(index, value){ 2404 2404 stringEmail += $(value).find("input").val() + ","; … … 2410 2410 if(content.find(".cc-tr").css("display") != "none") 2411 2411 { 2412 var array = content.find(".cc-tr").find(". email-box");2412 var array = content.find(".cc-tr").find(".box"); 2413 2413 $.each(array, function(index, value){ 2414 2414 stringEmail += $(value).find("input").val() + ","; -
sandbox/2.4.1-3/expressoMail1_2/js/search.js
r6232 r6334 20 20 21 21 //Monta os forms dentro da janela; 22 searchE.prototype.showForms = function(value )22 searchE.prototype.showForms = function(value, data) 23 23 { 24 24 if( trim(value) != "" ) … … 39 39 var div = document.createElement("div"); 40 40 var args = null; 41 41 42 42 args = 43 43 { … … 63 63 "Old" : get_lang('Old'), 64 64 "Search_the_messages_in_these_folders" : get_lang('Search the messages in these folders'), 65 "In_all_the_folders" : get_lang('In all the folders') 66 } 67 65 "In_all_the_folders" : get_lang('In all the folders'), 66 "From_value" : data 67 } 68 68 69 $(div).html(DataLayer.render("./templates/default/searchMails.ejs", args )); 69 70 div.setAttribute( "style","overflow:hidden"); -
sandbox/2.4.1-3/expressoMail1_2/templates/default/main.css
r6276 r6334 127 127 .context-menu-item.icon-normal { background-image: url(images/door.png); } 128 128 .context-menu-item.icon-followupflag { background-image: url(images/door.png); } 129 .context-menu-item.icon-quick-add { background-image: url(images/vcard_add.png); } 130 .context-menu-item.icon-delete-box{ background-image: url(images/user_delete.png); } 131 .context-menu-item.icon-quick-search-contact{ background-image: url(images/zoom.png); } 129 132 130 133 … … 1258 1261 button.expressomail-button-icon-ative{color:#E17009 !important; border: 1px solid #E17009 !important;background: none repeat scroll 0 0 #FFE1CC !important;} 1259 1262 1260 . email-box{1263 .box{ 1261 1264 background-color: #96B3D3; 1262 1265 border-radius: 5px; … … 1266 1269 margin-top : 1px; 1267 1270 margin-right: 1px; 1271 outline : none; 1272 padding : 1px; 1273 } 1274 1275 .box span{ 1276 font-family: Verdana, Arial, Helvetica, sans-serif; 1277 font-size: 13px; 1278 outline : none; 1268 1279 } 1269 1280 … … 1285 1296 width:15px; 1286 1297 border : none; 1298 font-family: Verdana, Arial, Helvetica, sans-serif; 1299 font-size: 13px; 1300 } 1301 1302 .box-input{ 1303 outline:none; 1304 border : none; 1305 font-family: Verdana, Arial, Helvetica, sans-serif; 1306 font-size: 13px; 1307 display : none; 1287 1308 } 1288 1309 -
sandbox/2.4.1-3/expressoMail1_2/templates/default/searchMails.ejs
r5751 r6334 3 3 4 4 <label><%=data.From%>:</label> 5 <input style="margin-left: 6px;" type="text" id="txt_de" size="20" />5 <input style="margin-left: 6px;" type="text" id="txt_de" size="20" value="<%=data.From_value%>"/> 6 6 <br style="margin-bottom:15px" /> 7 7 -
sandbox/2.4.1-3/prototype/modules/mail/templates/emailBox.ejs
r6278 r6334 1 <div class="email-box <%= (!data.valid ? "invalid-email-box" : "") %>"> 2 <span class="email-box-value" style="padding: 5px;"><%= (data.value.length > 18 ? data.value.substring(0, 15)+"..." : data.value) %></span> 1 <div class="box <%= (!data.valid ? "invalid-email-box" : "") %>" tabindex="0"> 2 <span class="email-box-value" style="padding: 5px;"> 3 <% 4 var presentation = (data.name != "" ? data.name : data.email); 5 var input_value = """+data.name+"" <"+data.email+">"; 6 %> 7 <%= 8 (presentation.length > 18 ? presentation.substring(0, 15)+"..." : presentation) 9 %> 10 </span> 11 <input class="box-input" value="<%= input_value %>"></input> 3 12 </div>
Note: See TracChangeset
for help on using the changeset viewer.