Changeset 7543


Ignore:
Timestamp:
11/22/12 09:06:13 (8 years ago)
Author:
angelo
Message:

Ticket #3197 - Reduzir tempo de carregamento do modulo Expresso Mail

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/draw_api.js

    r7538 r7543  
    20792079 
    20802080        if(get_current_folder().split("_")[0] != "local"){ 
    2081                   td_element26.innerHTML = '<div class="flag-edited" style="width:8px;height:6px;"><img src="../prototype/modules/mail/img/flagEditor.png"></div>'; 
     2081                  td_element26.innerHTML = '<div class="flag-edited" style="width:8px;height:6px; background-image:url(../prototype/modules/mail/img/mail-sprites.png);background-position: 0 -864px;"</div>'; 
    20822082            } else { 
    20832083            td_element26.innerHTML = ""; 
     
    21542154                                        $('#td_message_followup_' + messageClickedId + ', ' +  
    21552155                                        'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    2156                                         .html('<img src="../prototype/modules/mail/img/flagEditor.png">'); 
     2156                                        .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 
    21572157                                         
    21582158                                         
     
    21792179                                        $('#td_message_followup_' + messageClickedId + ', ' +  
    21802180                                        'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    2181                                         .html('<img src="../prototype/modules/mail/img/flagEditor.png">'); 
     2181                                        .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 
    21822182                                         
    21832183                                        $('#td_message_followup_' + messageClickedId + ', ' +  
     
    21862186                                        $('#td_message_followup_' + messageClickedId + ', ' +  
    21872187                                                'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    2188                                                 .find("img").attr("src", "../prototype/modules/mail/img/flagEditor.png").css("margin-left","0"); 
     2188                                                .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"}); 
    21892189                                });      
    21902190 
     
    21922192                                $('#td_message_followup_' + messageClickedId + ', ' +  
    21932193                                'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    2194                                 .html('<img src="../prototype/modules/mail/img/flagEditor.png">'); 
     2194                                .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 
    21952195                                $('#td_message_followup_' + messageClickedId + ', ' +  
    21962196                                'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited").css("background", followupColor); 
  • trunk/expressoMail1_2/js/draw_api.min.js

    r7541 r7543  
    314314td_element4.title=tr_element.tip;if(!is_ie){td_element4.innerHTML+="</a>";} 
    315315td_element5=createTDElement(0,10,"td_msg td_resizable","center");td_element5.onclick=_onclick;td_element27=createTDElement(0,7,"td_msg",null,"td_message_labels_"+headers_msgs.msg_number);$(td_element27).addClass("td-label");if(headers_msgs.labels){td_element27.innerHTML='<img src="../prototype/modules/mail/img/tag.png">';updateLabelsColumn(headers_msgs);} 
    316 td_element26=createTDElement(0,6,"td_msg","center","td_message_followup_"+headers_msgs.msg_number);$(td_element26).addClass("td-followup-flag");if(get_current_folder().split("_")[0]!="local"){td_element26.innerHTML='<div class="flag-edited" style="width:8px;height:6px;"><img src="../prototype/modules/mail/img/flagEditor.png"></div>';}else{td_element26.innerHTML="";} 
     316td_element26=createTDElement(0,6,"td_msg","center","td_message_followup_"+headers_msgs.msg_number);$(td_element26).addClass("td-followup-flag");if(get_current_folder().split("_")[0]!="local"){td_element26.innerHTML='<div class="flag-edited" style="width:8px;height:6px; background-image:url(../prototype/modules/mail/img/mail-sprites.png);background-position: 0 -864px;"</div>';}else{td_element26.innerHTML="";} 
    317317if(headers_msgs.followupflagged){if(headers_msgs.followupflagged.followupflag.id<7){var nameFollowupflag=get_lang(headers_msgs.followupflagged.followupflag.name);}else{var nameFollowupflag=headers_msgs.followupflagged.followupflag.name;} 
    318318$(td_element26).attr('title',nameFollowupflag).find(".flag-edited").css("background",headers_msgs.followupflagged.backgroundColor);if(headers_msgs.followupflagged.isDone=="1"){$(td_element26).find(".flag-edited").find("img").attr("src","../prototype/modules/mail/img/flagChecked.png").css("margin-left","-3px");}}else{$(td_element26).find(".flag-edited").css("background","#cccccc");} 
    319 $(td_element26).click(function(){var messageClickedId=$(this).attr('id').match(/td_message_followup_([\d]+)/)[1];var followupColor=$('#td_message_followup_'+messageClickedId).find(".flag-edited").css('backgroundColor');$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").html('<img alt="Carregando" title="Carregando" style="margin-left:-3px; margin-top:-4px; width:13px; height:13px;" src="../prototype/modules/mail/img/ajax-loader.gif" />');$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").css("background","transparent");DataLayer.remove('followupflagged',false);var flagged=DataLayer.get('followupflagged',{filter:['AND',['=','messageNumber',messageClickedId],['=','folderName',msg_folder]]});if(!flagged){headers_msgs.followupflagged={uid:User.me.id,folderName:msg_folder,messageNumber:messageClickedId,alarmTime:false,backgroundColor:'#FF2016',followupflagId:'1'};headers_msgs.followupflagged.id=DataLayer.put('followupflagged',headers_msgs.followupflagged);DataLayer.commit(false,false,function(data){var fail='success';$.each(data,function(index,value){if(typeof value==='string'){fail=value;}});$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").html('<img src="../prototype/modules/mail/img/flagEditor.png">');if(fail!='success'){$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").css("background","#CCCCCC");MsgsCallbackFollowupflag[fail]();}else{$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).attr('title',get_lang('Follow up')).find(".flag-edited").css("background",headers_msgs.followupflagged.backgroundColor);updateCacheFollowupflag(messageClickedId,msg_folder,true);}});}else if(onceOpenedHeadersMessages[msg_folder][messageClickedId]['followupflagged'].followupflag.name=='Follow up'){$(this).find(".flag-edited").css("background","#cccccc");DataLayer.remove('followupflagged',flagged[0].id);DataLayer.commit(false,false,function(){updateCacheFollowupflag(messageClickedId,msg_folder,false);$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").html('<img src="../prototype/modules/mail/img/flagEditor.png">');$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).attr('title','').find(".flag-edited").css("background",'#CCC');$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").find("img").attr("src","../prototype/modules/mail/img/flagEditor.png").css("margin-left","0");});}else{$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").html('<img src="../prototype/modules/mail/img/flagEditor.png">');$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").css("background",followupColor);$(tr_element).addClass('selected_msg').find(':checkbox').trigger('click');configureFollowupflag();}});var norm=function(arg){return(arg<10?'0'+arg:arg);};var weekDays=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];var today=new Date();today.setHours(23);today.setMinutes(59);today.setSeconds(59);today.setMilliseconds(999) 
     319$(td_element26).click(function(){var messageClickedId=$(this).attr('id').match(/td_message_followup_([\d]+)/)[1];var followupColor=$('#td_message_followup_'+messageClickedId).find(".flag-edited").css('backgroundColor');$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").html('<img alt="Carregando" title="Carregando" style="margin-left:-3px; margin-top:-4px; width:13px; height:13px;" src="../prototype/modules/mail/img/ajax-loader.gif" />');$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").css("background","transparent");DataLayer.remove('followupflagged',false);var flagged=DataLayer.get('followupflagged',{filter:['AND',['=','messageNumber',messageClickedId],['=','folderName',msg_folder]]});if(!flagged){headers_msgs.followupflagged={uid:User.me.id,folderName:msg_folder,messageNumber:messageClickedId,alarmTime:false,backgroundColor:'#FF2016',followupflagId:'1'};headers_msgs.followupflagged.id=DataLayer.put('followupflagged',headers_msgs.followupflagged);DataLayer.commit(false,false,function(data){var fail='success';$.each(data,function(index,value){if(typeof value==='string'){fail=value;}});$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"});if(fail!='success'){$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").css("background","#CCCCCC");MsgsCallbackFollowupflag[fail]();}else{$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).attr('title',get_lang('Follow up')).find(".flag-edited").css("background",headers_msgs.followupflagged.backgroundColor);updateCacheFollowupflag(messageClickedId,msg_folder,true);}});}else if(onceOpenedHeadersMessages[msg_folder][messageClickedId]['followupflagged'].followupflag.name=='Follow up'){$(this).find(".flag-edited").css("background","#cccccc");DataLayer.remove('followupflagged',flagged[0].id);DataLayer.commit(false,false,function(){updateCacheFollowupflag(messageClickedId,msg_folder,false);$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"});$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).attr('title','').find(".flag-edited").css("background",'#CCC');$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"});});}else{$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"});$('#td_message_followup_'+messageClickedId+', '+'tr[role="'+messageClickedId+'_'+msg_folder+'"] #td_message_followup_search_'+messageClickedId).find(".flag-edited").css("background",followupColor);$(tr_element).addClass('selected_msg').find(':checkbox').trigger('click');configureFollowupflag();}});var norm=function(arg){return(arg<10?'0'+arg:arg);};var weekDays=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];var today=new Date();today.setHours(23);today.setMinutes(59);today.setSeconds(59);today.setMilliseconds(999) 
    320320var udate_local=null;var date_msg=null;if((headers_msgs.udate!==undefined)&&(headers_msgs.udate.toString().match(/\d{2}:\d{2}/)||headers_msgs.udate.toString().match(/\d{2}\/\d{2}\/\d{4}/))) 
    321321{temp_msg_day=headers_msgs.msg_day.split('/');temp_msg_hour=headers_msgs.msg_hour.split(':');date_msg=new Date(temp_msg_day[2],temp_msg_day[1]-1,temp_msg_day[0],temp_msg_hour[0],temp_msg_hour[1]);} 
  • trunk/expressoMail1_2/js/search.js

    r7536 r7543  
    563563                                        td.id = "td_message_followup_search_"+uid_msg; 
    564564                                        td.setAttribute("class","search-result-item"); 
    565                                         td1 = '<div class="flag-edited" style="width:8px;height:6px;"><img src="../prototype/modules/mail/img/flagEditor.png"></div>'; 
     565                                        td1 = '<div class="flag-edited" style="width:8px;height:6px; background-image: url(../prototype/modules/mail/img/mail-sprites.png);background-position: 0 -864px;"></div>'; 
    566566                                                         
    567567                                        $(td).click(function(event, ui){         
     
    606606                                                                 
    607607                                                                $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    608                                                                 .html('<img src="../prototype/modules/mail/img/flagEditor.png">'); 
     608                                                                .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 
    609609                                                                 
    610610                                                                if (fail) { 
     
    634634                                                        DataLayer.commit(false, false, function(){ 
    635635                                                                $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    636                                                                 .html('<img src="../prototype/modules/mail/img/flagEditor.png">'); 
     636                                                                .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 
    637637                                                                if(current_folder == mailbox){ 
    638638                                                                        updateCacheFollowupflag(messageClickedId, mailbox, false); 
     
    643643                                                                        $('#td_message_followup_' + messageClickedId + ', ' +  
    644644                                                                                'tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    645                                                                                 .find("img").attr("src", "../prototype/modules/mail/img/flagEditor.png").css("margin-left","0");                         
     645                                                                                .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"});                     
    646646                                                                }else{ 
    647647                                                                        updateCacheFollowupflag(messageClickedId, mailbox, false); 
     
    650650                                                                         
    651651                                                                        $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    652                                                                                 .find("img").attr("src", "../prototype/modules/mail/img/flagEditor.png").css("margin-left","0"); 
     652                                                                                .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"}); 
    653653                                                                } 
    654654                                                        }); 
     
    656656                                                } else { 
    657657                                                        $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 
    658                                                         .html('<img src="../prototype/modules/mail/img/flagEditor.png">'); 
     658                                                        .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 
    659659                                                        $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited").css("background", followupColor); 
    660660                                                        $(this).parents('[role="'+messageClickedId+'_'+mailbox+'"]').attr('class', 'selected_msg').find(':checkbox').trigger('click'); 
  • trunk/expressoMail1_2/templates/default/main.css

    r7542 r7543  
    12031203#content_folders .foldertree-skin-prognus span.trash {;background-image: url(../../../prototype/modules/mail/img/bin.png);} 
    12041204#content_folders .foldertree-skin-prognus span.drafts {background-image: url(../../../prototype/modules/mail/img/folder_page_white.png);} 
    1205 #content_folders .foldertree-skin-prognus span.spam {background-image: url(../../../prototype/modules/mail/img/folder_delete.png);} 
    1206 #content_folders .foldertree-skin-prognus span.sent {background-image: url(../../../prototype/modules/mail/img/folder_go.png);} 
     1205#content_folders .foldertree-skin-prognus span.spam {background-image: url(../../../prototype/modules/mail/img/mail-sprites.png); background-position: 0 -989px;} 
     1206#content_folders .foldertree-skin-prognus span.sent {background-image: url(../../../prototype/modules/mail/img/mail-sprites.png); background-position: 0 -1055px;} 
    12071207#content_folders .foldertree-skin-prognus span.folder {display: block;padding-bottom: 1px;padding-left: 18px;padding-right: 0;padding-top: 1px; font-family : Lucida Grande, Lucida Sans, Arial, sans-serif;} 
    12081208#content_folders .treeview .closed {display:block;} 
  • trunk/expressoMail1_2/templates/default/main.min.css

    r7542 r7543  
    1 body{overflow:hidden}.expressomail-attachments{background:#EEE;font-size:11px;width:100%;margin:0;padding:0}.expressomail-attachments-label{display:block;float:left}ul.expressomail-attachments-list{list-style:none;display:block;margin-left:40px}.expressomail-attachments-link{font-size:11px}textarea{overflow:hidden;height:auto}a.rich{padding:5px;cursor:pointer;text-align:center}button.adress_button{width:47px;text-align:center}span.ui-icon.expressomail-icon-read-confirmation{background-image:url(images/notification.gif)!important;background-position:0 0;width:24px;height:24px}span.ui-icon.expressomail-icon-save{background-image:url(images/disk.png)!important;background-position:0 2px;width:16px;height:16px;background-size:13px}span.ui-icon.expressomail-icon-signature{background-image:url(images/signature.gif)!important;background-position:8px 2px;width:24px;height:24px;background-size:13px}span.ui-icon.expressomail-icon-encryption{background-image:url(images/lock.png)!important;background-position:7px 1px;width:24px;height:24px;background-size:13px}span.ui-icon.expressomail-icon-send{background-image:url(images/send.png)!important;background-position:-2px 2px;width:25px;height:16px;background-size:19px}span.ui-icon.expressomail-icon-save_and_send{background-image:url(images/save_and_send.png)!important;width:25px;height:16px;background-size:17px}span.ui-icon.expressomail-icon-important{background-image:url(images/important.png)!important;background-position:7px 1px;width:24px;height:24px;background-size:13px}.expressomail-thumbs{font-size:11px;width:100%;max-width:100%;margin:20px 0 0 0;border-top:1px solid #AAA;float:left}.expressomail-thumbs span.message_tips{display:block;padding-left:18px;line-height:18px;height:18px;background-image:url(images/menu/ktip.png);background-repeat:no-repeat}ul.expressomail-thumbs-list{list-style:none;margin:0;padding:0}ul.expressomail-thumbs-list li{height:80px;max-width:120px;max-height:80px;display:block;float:left;margin:5px;padding:0}ul.expressomail-thumbs-list li img{width:auto;height:100%;border:2px solid #fde7bc}.expressomail-thumbs-link{font-size:11px}.jcarousel-container{width:auto}table.expressomail-message-body{width:100%;height:100%}table.table_message,div.table_message{background:#96b3d3;background:-moz-linear-gradient(top,#96b3d3 0,#b4c9e4 30%,#d9e6ef 65%,#e2e9f1 70%,#e9f0f8 78%,#e8f1fa 83%,#dbe5ef 96%,#d9e3ed 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#96b3d3),color-stop(30%,#b4c9e4),color-stop(65%,#d9e6ef),color-stop(70%,#e2e9f1),color-stop(78%,#e9f0f8),color-stop(83%,#e8f1fa),color-stop(96%,#dbe5ef),color-stop(100%,#d9e3ed));background:-webkit-linear-gradient(top,#96b3d3 0,#b4c9e4 30%,#d9e6ef 65%,#e2e9f1 70%,#e9f0f8 78%,#e8f1fa 83%,#dbe5ef 96%,#d9e3ed 100%);background:-o-linear-gradient(top,#96b3d3 0,#b4c9e4 30%,#d9e6ef 65%,#e2e9f1 70%,#e9f0f8 78%,#e8f1fa 83%,#dbe5ef 96%,#d9e3ed 100%);background:-ms-linear-gradient(top,#96b3d3 0,#b4c9e4 30%,#d9e6ef 65%,#e2e9f1 70%,#e9f0f8 78%,#e8f1fa 83%,#dbe5ef 96%,#d9e3ed 100%);background:linear-gradient(top,#96b3d3 0,#b4c9e4 30%,#d9e6ef 65%,#e2e9f1 70%,#e9f0f8 78%,#e8f1fa 83%,#dbe5ef 96%,#d9e3ed 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#96b3d3',endColorstr='#d9e3ed',GradientType=0)}table.expressomail-message-body tr{vertical-align:top}.table_message_options{background-color:#000;-moz-border-collapse:separate;border-color:gray;border-spacing:0;border-style:outset;border-width:.01;cursor:default;padding:1px;-moz-border-radius:3px;-webkit-border-radius:3px}.table_message_options_ie{border-collapse:collapse;background-color:#000;border-color:gray;border-spacing:0;border-style:outset;border-width:1;cursor:default;padding:1px;-moz-border-radius:3px;-webkit-border-radius:3px}.table_message{background-color:#000;-moz-border-collapse:separate;border-color:gray;border-radius:3px 3px 3px 3px;border-spacing:0;border-style:outset;border-width:1px;cursor:default;padding:1px;-moz-border-radius:3px;-webkit-border-radius:3px}.div_message_scroll{background:none repeat scroll 0 0 WHITE;overflow:auto;padding-right:5px}a.message-attach-link{margin-left:20px}.messagescol td label{padding-right:20px}.messagescol td.message-general-options .checkbox{margin:5px 5px 0 0}.ui-dialog-dragging{opacity:.4;filter:alpha(opacity=40)}.context-menu-item.icon-important{background-image:url(images/important.png);background-position:6px 5px!important}.context-menu-item.icon-export{background-image:url(images/export.png)}.context-menu-item.icon-move{background-image:url(images/move.png)}.context-menu-item.icon-seen{background-image:url(images/seen.gif)}.context-menu-item.icon-unseen{background-image:url(images/unseen.gif)}.context-menu-item.icon-normal{background-image:url(images/door.png)}.context-menu-item.icon-followupflag{background-image:url(images/door.png)}.context-menu-item.icon-quick-add{background-image:url(images/vcard_add.png)}.context-menu-item.icon-delete-box{background-image:url(images/user_delete.png)}.context-menu-item.icon-quick-search-contact{background-image:url(images/zoom.png)}.context-menu-item.icon-archive{background-image:url(images/archive.png)}.context-menu-item.icon-search-mail{background-image:url(images/menu/search.png)}.context-menu-item.icon-filter{background-image:url(images/menu/filters.png)}.context-menu-item.icon-edit-folder{background-image:url(images/menu/editfolders.png)}.context-menu-item.icon-share-mailbox{background-image:url(images/menu/usersfolders.png)}.context-menu-item.icon-label{background-image:url(images/menu/usersfolders.png)}.context-menu-item.icon-tag{background-image:url(images/menu/tag.png);background-size:12px;background-position:6px 2px!important}.context-menu-item.icon-empty-trash{background-image:url(images/menu/trash.png)}.context-menu-item.icon-queue{background-image:url(images/menu/queue.png)}.context-menu-item.icon-config{background-image:url(images/menu/config.png)}form.fileupload{margin:14px 0 0 -13px;float:left;margin-bottom:-20px}form.fileupload .files-list{margin-left:5px;margin-top:-14px;padding:.2em .7em}form.fileupload .files-list .delete-upload{top:7px}div.attachments-list{max-height:130px;overflow-y:auto;padding-top:5px}.button-files-upload{float:left}form.fileupload .ui-button .ui-button-text{line-height:2}form.fileupload .ui-button{margin-left:5px}form.fileupload .message-add-original-att{margin-left:0}.button.add.button-add-attachment{margin:-9px 0 0 8px}.button.upload{margin-bottom:4px}div.fileupload-buttonbar{padding:.2em .5em}.archive-error{color:#F00}.progress.in-progress{width:100px;height:12px}.row.fileupload-buttonbar{margin-top:-14px;padding:.2em .7em}.archive-attach.name{width:310px}.archive-attach.name label{display:block;position:absolute;left:136px;top:194px}.size{min-width:65px}.message-attach.name{width:200px}.message-attach.size{margin:0 4px 0 4px}.message-attach-error{color:red}.expressomail-qs-container{font-size:11px}.expressomail-qs-container legend{font-size:1.1em;font-weight:bold}.expressomail-qs-container #accordion{margin:5px}.expressomail-qs-container fieldset,.expressomail-qs-container div{margin:0}.expressomail-qs-container .ui-autocomplete-input{height:22px;width:200px;margin-right:-1px}.expressomail-qs-container #wrap-progressbar{height:22px;width:122px;float:left}.expressomail-qs-container #wrap-progressbar #inner-progressbar{text-align:center;width:100px}.expressomail-qs-container #wrap-progressbar #inner-progressbar span{font-size:10px;line-height:12px}.expressomail-qs-container #wrap-progressbar #inner-progressbar #progressbar{width:100px;height:10px}.expressomail-qs-container .clear{clear:both}.expressomail-qs-container fieldset{border:1px solid #AAA;border-radius:5px;margin:5px}.expressomail-qs-container #ul{list-style:none;margin:0;padding:0}.expressomail-qs-container #fieldset1{color:#444}.expressomail-qs-container #fieldset1 label{font-weight:bold;display:block}.expressomail-qs-container #list-acc-users li,.expressomail-qs-container #search-result-users li{margin-right:5px;border-radius:3px}.expressomail-qs-container #list-acc-mails li{margin-right:5px;padding-bottom:4px;border-radius:3px}.expressomail-qs-container #list-acc-users li:hover,.expressomail-qs-container #list-acc-mails li:hover,.expressomail-qs-container #search-result-users li:hover{background-color:#DDD}.expressomail-qs-container #list-acc-users li span.ui-icon,.expressomail-qs-container #list-acc-mails li span.ui-icon,.expressomail-qs-container #search-result-users li span.ui-icon{display:none;margin:2px}.expressomail-qs-container #list-acc-users li input,.expressomail-qs-container #list-acc-mails li input,.expressomail-qs-container #search-result-users li input{margin-top:5px}.expressomail-qs-container #list-acc-users li label,.expressomail-qs-container #list-acc-mails li label,.expressomail-qs-container #search-result-users li label{margin-top:-5px}.expressomail-qs-container #list-acc-users li:hover span,.expressomail-qs-container #list-acc-mails li:hover span,.expressomail-qs-container #search-result-users li:hover span{display:inline}.expressomail-qs-container #search-result-users li span.ui-icon{display:none}.expressomail-qs-container .ui-icon{float:right}.expressomail-qs-container #icon-bar1 .ui-icon{float:left;margin:0 3px}.expressomail-qs-container #icon-bar1 span{float:left;margin:2px 3px 0 0}.expressomail-qs-container .ui-icon-trash,.expressomail-qs-container .ui-icon-edit,.expressomail-qs-container .ui-icon-close,.expressomail-qs-container .ui-icon-plus,.expressomail-qs-container .ui-icon-pencil{background-color:#EEE}.expressomail-qs-container .ui-icon-trash:hover,.expressomail-qs-container .ui-icon-edit:hover,.expressomail-qs-container .ui-icon-close:hover,.expressomail-qs-container .ui-icon-plus:hover,.expressomail-qs-container .ui-icon-pencil:hover{background-color:#BBB}.expressomail-qs-container .ui-autocomplete-input{width:170px}.expressomail-qs-container .ui-accordion .ui-accordion-content{padding:5px}.expressomail-qs-container .foot-note{width:905px;padding:5px;margin-top:20px;border-top:1px solid #ddd}.expressomail-qs-container .acc-list{font-family:"Trebuchet MS",Tahoma,Verdana,Arial,sans-serif;font-size:11px;color:#555}.expressomail-qs-container .acc-list h3{font-family:"Trebuchet MS",Tahoma,Verdana,Arial,sans-serif;font-size:11px;color:#555;margin:0;padding:5px 3px;background-color:#fff}.expressomail-qs-container .acc-list ul{margin:5px 0}.expressomail-qs-container .acc-list ul li{border-radius:3px;padding:5px}.expressomail-qs-container .acc-list ul li:hover{background-color:#DDD}.expressomail-qs-container .acc-list ul li.active{background-color:#eb8f00}.expressomail-qs-container .acc-list ul li strong{display:block}.expressomail-qs-container .acc-list ul li em{display:block}.expressomail-qs-container #feedback{font-size:1.4em}.expressomail-qs-container #selectable .ui-selecting{background:#ddecf7}.expressomail-qs-container #selectable .ui-selected{background:#72a9d3;color:white}.expressomail-qs-container #selectable{list-style-type:none;margin:0;padding:0;width:100%}.expressomail-qs-container ul#selectable{overflow:hidden;width:444px;height:250px}.expressomail-qs-container ul#selectable li{width:435px;overflow:hidden}.expressomail-qs-container ul#selectable li.ui-selected{width:100%}.expressomail-qs-container ul#selectable li div{width:6000px}.expressomail-qs-container .ui-button-icon-only{width:1.2em}.expressomail-qs-container .ui-icon{margin-left:-8px}.expressomail-qs-container .ui-widget button{border:0 solid}.expressomail-qs-container .menu-control{float:right;margin-left:400px;position:absolute;z-index:100;padding-top:5px}.expressomail-qs-container .acc-list{width:444px;height:250px;float:left;border:1px solid #DDD;background-color:#EEE;border-radius:3px;margin-left:1px;margin:10px 5px 5px 1px}.expressomail-qs-container .details-container{width:300px;height:246px;float:right;margin:5px 0}.expressomail-qs-container .acc-list .demo{width:100%;margin-top:20px}.dialog-modal.expressomail-qs-container{height:416px;padding:5px}.ui-dialog .ui-dialog-buttonpane{padding:0;border:0;margin:0}.expressomail-qs-container .menu-control .ui-button-text-only .ui-button-text{padding:.1em .6em}fieldset.search-field,fieldset.search-catalog-options{border:1px solid #cfcfcf;padding:5px}fieldset.search-field input,fieldset.search-catalog-options select{display:inline-block;border:0;background-color:#FFF}fieldset.search-field span{display:inline-block;margin:0 0 -3px 5px}fieldset.search-field{max-width:190px;width:190px;margin:0;text-align:left;display:inline}fieldset.search-field input{max-width:165px;width:165px}fieldset.search-catalog-options{max-width:124px;width:120px;margin:0;text-align:left;display:inline}fieldset.search-catalog-options select{max-width:120px;width:120px}.ui-dialog .ui-dialog-titlebar-minimize{height:18px;margin:-10px 0 0;padding:1px;position:absolute;right:1.8em;top:50%;width:19px}.ui-dialog-buttonpane .ui-button{margin-top:0;padding-top:0}.button-mod{margin-top:-2.5em}.print-all-messages h1{font-size:1.35em}.print-all-messages h2{font-size:1.05em}.print-all-messages tbody{font-size:.95em}.print-all-messages thead td{font-weight:bold;padding:3px;border-bottom:solid 2px #999}.print-all-messages tbody td{border-bottom:solid 1px #ccc}.print-all-messages img{display:none}.print-all-messages input{display:none}pre{white-space:pre-wrap!important;white-space:-moz-pre-wrap!important;white-space:-pre-wrap!important;white-space:-o-pre-wrap!important;word-wrap:break-word!important;font-family:monospace!important;font-size:11px!important}.checkbox{border:none!important}textarea{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px}.whiteSpace{width:2px}.table_box{width:100%;color:black;background:#fff;border-bottom:1px solid #f4f8fb;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;cursor:pointer;table-layout:fixed}.em_div_write_msg{height:24px;background:transparent}.td_msg{border-width:0}.span-sender:hover{text-decoration:underline}.th_resizable{padding-left:3px!important;border-left:solid 1px #999;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.td_resizable{padding-left:1px;border:0;border-left:solid 1px #dde1dd;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-right-width:0!important}.tr_msg_unread{font-weight:bold!important}.table_box tr{border:0;height:20px}.table-info-quota{table-layout:fixed}.td-info-quota{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tr_msg_read{color:#3f3f3f;background-color:#fff;-moz-user-select:none}.tr_msg_read2{color:#3f3f3f;background-color:#dee8f0;-moz-user-select:none}.selected_msg{background-color:#ffffcb}.flagged_msg{color:red}.show_img_link{width:100%;color:black;font-weight:bold;background-color:#ffc;border-bottom:1px solid #cfcfcf;cursor:pointer;-moz-user-select:none}.show_img_link:hover{color:#000!important}.action_info_table{border-spacing:0}.action_info_th{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;border-width:0;padding:1px 10px 0 10px;border-style:inset inset inset inset;border-color:gray gray gray gray;background-color:#fad163;-moz-border-radius:6px 6px 6px 6px}.message_header{background-color:#abc6e1}.message_header td{padding:0}.table_message_ruler{width:10px;border:0;border-left:1px dotted #88a;display:none;position:absolute;z-index:10;height:300px}.table_message_header_box{width:100%;color:black;border-style:solid;border-width:0;border-collapse:collapse;border-color:#bbb;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;cursor:pointer;table-layout:fixed}.font-menu{color:#000}.font-menu-sel{color:#00f}.font-menu,.font-menu-sel{float:left;clear:left;overflow:hidden;white-space:nowrap;padding-left:5px;margin-right:5px;text-decoration:none;text-align:center}.menu-sel{text-decoration:none;text-align:center;color:#00f;height:20px;width:220px;background-color:#f7f7f7;margin-bottom:0;border:1px solid #4a79b1;border-bottom:0;padding:0 5px 0 0;-moz-border-radius:9px 9px 0 0;-moz-user-select:none;-webkit-border-radius:9px 9px 0 0;border-radius:9px 9px 0 0;cursor:pointer}.menu{text-decoration:none;text-align:center;height:20px;width:220px;background-color:#c8d7ea;margin-bottom:0;border:1px solid #f4f7fc;border-bottom:1px solid #4a79b1;padding:0 5px 0 0;-moz-border-radius:9px 9px 0 0;-moz-user-select:none;-webkit-border-radius:9px 9px 0 0;border-radius:9px 9px 0 0;cursor:pointer}.last_menu{border-bottom:1px solid #4a79b1;-moz-border-radius:0}.table_top{background-color:#fff;padding:1px 1px 1px 1px;height:16px;cursor:default;margin:0;border-width:0 1px 1px 1px;border-style:outset outset outset outset;border-color:black black black black}.tr_message_header{background-color:#eee;font-family:Verdana,Arial,Helvetica,sans-serif;cursor:default;border-style:none none none none;-moz-border-radius:0}.tr_message_body{background-color:#fff;cursor:default;-moz-border-radius:9px 9px 9px 9px}.message_body{background-color:#fff;cursor:default;-moz-border-radius:9px 9px 9px 9px}.header_message_field{font-weight:bold}.suggestion_list{background:white;border:1px solid;padding:4px}.suggestion_list ul{padding:0;margin:0;list-style-type:none}.suggestion_list a{text-decoration:none;color:navy}.suggestion_list .selected{background:navy;color:white}.suggestion_list .selected a{color:white}#autosuggest{display:none}div#tipDiv{position:absolute;visibility:hidden;left:0;top:0;z-index:10000;background-color:#efefef;border:1px solid #337;width:220px;padding:0;color:#000;font-size:11px;line-height:1.2;cursor:pointer}.richtext_toolbar{background-color:#c0c0c0}.imagebutton{border:solid 2px #c0c0c0;background-color:#c0c0c0;float:left}.select_richtext{float:left}.sel_color{border-width:1px;border-color:#fff;border-style:solid;cursor:pointer}.unsel_color{border-width:1px;border-color:#bbb;border-style:solid}.dtree{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:8px;color:#000;background-color:#fff}.dtree img{border:0;vertical-align:middle}.dtree a{font-family:Verdana,Arial,Helvetica,sans-serif;color:#000;white-space:nowrap}.dtree table{margin-top:0;padding:0}.dtree td{padding:0}.folderscol{width:100%}.messagescol{width:100%;padding:0}.menu-folders{text-align:center;text-decoration:none;font:bold 12px Arial,Helvetica,sans-serif;color:#063;width:100%;height:20px;border-right:1px solid #000;border-left:1px solid #000;border-top:1px solid #000;cursor:default;-moz-border-radius:9px 9px 0 0}.content-menu{padding:0;background-image:url(../../../phpgwapi/templates/default/images/bgBlockContent.jpg)}.content-menu-td{margin-left:5px}.content-menu-td:hover{background-color:#fff;border:1px solid #ccc}.content-folders{width:162px;padding:0;position:relative;overflow:auto}.filter{font-family:Arial,Helvetica,sans-serif;font-size:8px;background-color:#fff}.filter img{border:0;vertical-align:middle}.filter a{font-family:Arial,Helvetica,sans-serif;color:#000;white-space:nowrap}.message_options_trash{background-image:url(images/page_white_delete.png);background-repeat:no-repeat;background-position:left center;padding:0 6pt 1pt 14pt}.message_options_move{background-image:url(images/move.png);background-repeat:no-repeat;background-position:left center;padding:0 6pt 1pt 14pt}.message_options_print{background-image:url(images/print.png);background-repeat:no-repeat;background-position:left center;padding:0 6pt 1pt 14pt}.message_options_export{background-image:url(images/export.png);background-repeat:no-repeat;background-position:left center;padding:0 6pt 1pt 14pt}.message_options_import{background-image:url(images/import.png);background-repeat:no-repeat;background-position:left center;padding:0 6pt 1pt 14pt}.message_options_inactive{white-space:nowrap;color:#999;padding-right:0!important}.message_options_active{white-space:nowrap;color:#900;font-weight:bold!important;cursor:pointer;padding-right:0!important}.message_options{cursor:pointer;color:#114fa4;white-space:nowrap;font-weight:bold;padding-right:0!important}.message_options_over{cursor:pointer;white-space:nowrap;color:#fc6103;font-weight:bold!important;padding-right:0!important}.reply_options{cursor:pointer;color:white;white-space:nowrap;font-weight:bold}.reply_options_active{cursor:pointer;white-space:nowrap;color:yellow;text-decoration:underline;font-weight:bold!important}.class_search_div{position:relative;left:12px}.em_sidebox_menu{position:relative;left:2px;padding:0 13px 0 0;font-weight:bold;font-size:10px;color:#666;text-decoration:none;white-space:nowrap;font-family:sans-serif}.em_div_sidebox_menu{position:relative;cursor:pointer;left:17px}.catalog{font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:bold}div.quicksearchcontacts{border-width:1px;border-style:solid;broder-color:grey;overflow:auto;position:relative;left:10px;height:302px;width:577px}table.quicksearchcontacts{border-width:0;border-spacing:0;background-color:white;cursor:default}tr.quicksearchcontacts_unselected{background-color:white}tr.quicksearchcontacts_selected{background-color:#5598d7;color:white}td.quicksearchcontacts_cc{border-style:none}input.em_button_like_span{border:0 none!important;margin:0!important;padding:0!important;color:#114fa4!important;background:transparent none repeat scroll 0!important;font-family:Arial,Helvetica,sans-serif!important;font-size:11px!important;height:15px!important;font-weight:bold}.l{background-image:url(../../../phpgwapi/templates/default/images/foldertree_folder.png)}.sl{background-image:url(../../../phpgwapi/templates/default/images/foldertree_folderopen.png)}.dsused{background-image:url(../../../expressoMail1_2/templates/default/images/dsused.gif)}.divAppboxHeader{font-style:italic;font-weight:normal;font-variant:small-caps;color:#006!important;font-size:16px!important;text-align:center;padding:0}@media screen and (-webkit-min-device-pixel-ratio:0){input[type="file"]{background-color:#FFF;border:1px solid #e4e4e4;height:20px;width:350px;vertical-align:middle}}.local-messages-search-warning{cursor:pointer;cursor:hand;background:none repeat scroll 0 0 #feb;color:red;line-height:2em;font-size:1.2em;text-align:center}.new-event-win.active:focus,.new-task-win.active:focus{outline:0}.new-event-win.active body,.new-task-win.active body{line-height:1;color:black;background:white}.new-event-win.active ol,.new-event-win.active ul,.new-task-win.active ol,.new-task-win.active ul{list-style:none;list-style-image:none;padding-left:5px}.new-event-win.active table,.new-task-win.active table{border-collapse:separate;border-spacing:0}.new-event-win.active caption,.new-event-win.active th,.new-event-win.active td,.new-task-win.active caption,.new-task-win.active th,.new-task-win.active td{font-weight:normal}.new-event-win.active blockquote:before,.new-event-win.active blockquote:after,.new-event-win.active q:before,.new-event-win.active q:after,.new-task-win.active blockquote:before,.new-task-win.active blockquote:after,.new-task-win.active q:before,.new-task-win.active q:after{content:""}.new-event-win.active blockquote,.new-event-win.active q,.new-task-win.active blockquote,.new-task-win.active q{quotes:"" ""}.new-event-win.active .mail.name-special,.new-event-win.active .name.name-special,.new-task-win.active .mail.name-special,.new-task-win.active .name.name-special{padding:0 0 0 35px}.new-event-win.active .add-attendee-search.search-field,.new-task-win.active .add-attendee-search.search-field{width:249px}.new-event-win.active #calendar_addevent_details4,.new-task-win.active #calendar_addtask _details4{margin:10px 0 0 0}.new-event-win.active input,.new-task-win.active input{color:#000}.new-event-win.active #calendar_addevent_details5,.new-task-win.active #calendar_addtask_details5{margin:10px 0 11px 0}.new-event-win fieldset.tab-level2,.new-task-win fieldset.tab-level2{padding:0 5px;min-height:110px;max-height:310px;overflow:hidden}.new-event-win.active select,.new-task-win.active select{border:1px solid #cfcfcf;border-color:#cfcfcf;color:#555;background-color:#FFF}.new-event-win.active a:link,.new-event-win.active a:visited .new-task-win.active a:link,.new-task-win.active a:visited{color:#2e6e9e}.new-event-win.active dd,.new-event-win.active dl,.new-event-win.active dt,.new-task-win.active dd,.new-task-win.active dl,.new-task-win.active dt{margin:0}.new-event-win.active #divAppbox .new-task-win.active #divAppbox{overflow-x:auto;overflow-y:scroll}.new-event-win.active select .new-task-win.active select{border-color:#cfcfcf;color:#555;padding-left:0}.qtip-wrapper fieldset{padding:0;border:0}.new-event-win.active .fc-event-skin{border-color:#36C!important;background-color:#36C!important;color:white!important}.fc-event-vert .fc-event-bg{display:block!important}#new_event_map .map-event .fc-event-inner.fc-event-skin{border-style:dashed!important;border-width:2px!important;border-color:#36C!important;background-color:transparent!important}#new_event_map .map-event .fc-event-inner.fc-event-skin .fc-event-head,#new_event_map .map-event .fc-event-inner.fc-event-skin .fc-event-content{background-color:transparent!important;color:transparent!important}#new_event_map .map-event .ui-resizable-handle{display:block!important;color:black!important}div.new-event-win.active div.button-files-upload{margin:15px 0 0 0}fieldset.alarm{border:none!important;padding:0!important;margin:0!important}.new-task-win dl.block-add-attendee{width:350px}.new-task-win.active .add-attendee-search.search-field{width:322px}.new-task-win .menu-container.footer-container{width:774px}#content_folders .foldertree-skin-prognus span.selected{font-weight:bold!important}#content_folders .foldertree-skin-prognus span.trash{;background-image:url(../../../prototype/modules/mail/img/bin.png)}#content_folders .foldertree-skin-prognus span.drafts{background-image:url(../../../prototype/modules/mail/img/folder_page_white.png)}#content_folders .foldertree-skin-prognus span.spam{background-image:url(../../../prototype/modules/mail/img/folder_delete.png)}#content_folders .foldertree-skin-prognus span.sent{background-image:url(../../../prototype/modules/mail/img/folder_go.png)}#content_folders .foldertree-skin-prognus span.folder{display:block;padding-bottom:1px;padding-left:18px;padding-right:0;padding-top:1px;font-family:Lucida Grande,Lucida Sans,Arial,sans-serif}#content_folders .treeview .closed{display:block}.folders-loading{background:url(../../../prototype/modules/mail/img/loader.gif)!important;background-position:0 0!important;background-repeat:no-repeat!important}.draggin-box{cursor:pointer;background-color:#cdc5bf;float:left;width:auto;height:16px;border:1px solid #333;text-align:right;z-index:2000}.ui-draggin-default-image{float:left;text-align:right}.draggin-mail{float:left;background-image:url(../../../prototype/modules/mail/img/move.png);background-position:0 0;background-repeat:no-repeat;color:red;text-align:right;font-weight:bold;padding-right:5px;padding-left:25px;font-family:Lucida Grande,Lucida Sans,Arial,sans-serif;font-size:11px}.draggin-folder{float:left;background-image:url(../../../prototype/modules/mail/img/mail-sprites.png);background-position:0 -923px;background-repeat:no-repeat;padding-left:20px;color:red;text-align:right;font-weight:bold;padding-right:5px}.collapse_folders_td{cursor:pointer;width:12px;height:100%;border-radius:5px;border-left:1px solid #ccc}.collapse_folders_td.collapse_folders_td_over{border-left:1px solid #1b75bb}.folder-over{border:1px solid black}.floating-default{float:left;text-align:left}.collapse_folders_td .ui-icon.ui-icon-triangle-1-e{background-position:-37px -20px;width:8px;height:8px}.collapse_folders_td .ui-icon.ui-icon-triangle-1-w{width:8px;height:8px;background-position:-100px -20px}.float-menu{position:absolute;text-align:left}button.expressomail-button-icon-ative{color:#e17009!important;border:1px solid #e17009!important;background:none repeat scroll 0 0 #ffe1cc!important}.outoffice{width:295px;height:50px;overflow:hidden}.title-outoffice{margin-left:10px;font-family:verdana;font-size:1.2em}.outoffice span{margin:5px}#detalhes_contato img{margin-bottom:-4px}button.expressomail-button-icon-ative{color:#e17009!important;border:1px solid #e17009!important;background:none repeat scroll 0 0 #ffe1cc!important}.box{background-color:#dfeffc;border-radius:5px;-moz-border-radius:5px;border:1px solid #add9ed;display:inline-block;cursor:pointer;margin-top:1px;margin-right:1px;outline:0;padding:1px}.box span{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;color:#201b41;outline:0}.out-office-box{background-color:#dac407;border:1px solid #837c3f!important}.out-office-box span{color:#837c3f}.email-area{border-radius:5px;width:98.5%;padding:5px;border:1px solid #bbb;heigth:auto;max-height:115px;overflow-y:auto;cursor:text}.email-text{outline:0;width:15px;border:0;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px}.box-input{outline:0;border:0;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;display:none;width:40px}.hidden{display:none}.loading{background:url(../../../prototype/modules/mail/img/loader.gif)!important;background-position:0 0!important;background-repeat:no-repeat!important}.line-separator{background:url("images/linha.png") repeat-x scroll 0 8px transparent;clear:both}.box-draggable-hover{border:1px solid #474747}.box-loading{background:url("../../../prototype/modules/mail/img/loading.gif") no-repeat!important;background-size:17px auto!important}.box-info{background:url("images/information.png") no-repeat!important}input.required-fail{border-color:red}div.conteudo div.new-msg-head-data div.att-box{background-color:#dfeffc;border-radius:5px;-moz-border-radius:5px;border:1px solid #add9ed;display:inline-block;cursor:pointer;margin-top:3px;margin-right:3px;outline:0;padding:1px}div.conteudo div.new-msg-head-data div.att-box span.att-box-value{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;color:#201b41;outline:0}div.conteudo div.new-msg-head-data div.att-box span.att-box-loading{background:url("../../../prototype/modules/mail/img/loading.gif") no-repeat!important;display:inline-block;background-size:15px auto!important}div.conteudo div.new-msg-head-data div.att-box.invalid-email-box{background-color:#ea9aa0;border:1px solid #540303!important}div.new-msg-head-data div.email-area .invalid-email-box{color:#540303;background-color:#ea9aa0;border:1px solid #540303!important}div.new-msg-head-data div.email-area .box-selected{background-color:#bbb}.fileupload_msg_tooltip{width:99.7%;text-align:center;background:#dfeffc;font-weight:bold;border-radius:5px;height:115px;line-height:115px;font-size:larger}.fileupload_msg_tooltip.hover{background:#add9ed}.select-all-messages{min-height:20px;font-size:13px;font-family:Arial;white-space:nowrap;text-align:center}.select-all-messages .select-link{text-decoration:underline!important}.none-selected{color:#9f9f9f}.selected_shortcut_msg{color:white;background-color:#95a7fc}.current_selected_shortcut_msg{color:white;background-color:#5194d2}div.gray li{float:left;width:253px}div.gray li a.button.delete{float:right}.div-addtask #calendar_addtask_details1 .h1{width:100%}.div-addtask #calendar_addtask_details2 textarea{width:675px}.div-addtask .button-files-upload{width:100%}.div-addtask fieldset.block-add-attendee .search-result-list,fieldset.block-add-activity .search-result-list{width:330px}.new-event-win div.div-addevent,.new-task-win div.div-addtask{width:775px}.calendar-addevent-details-txt-timezone,.calendar-addtask-details-txt-timezone{width:212px}.div-addtask #calendar_addtask_details1 .time-previsao{width:40px}.div-addtask #calendar_addtask_details1 .date-previsao{width:80px}.div-addtask #calendar_addtask_details6{width:756px}.div-addtask #calendar_addtask_details1 .start-time{width:40px}.div-addtask #calendar_addtask_details1 .start-date{width:80px}.div-addtask #calendar_addtask_details1 .end-time{width:40px}.div-addtask #calendar_addtask_details1 .end-date{width:80px}.div-addtask #calendar_addtask_details1 .previsao-termino{margin:0 0 0 20px}.div-addtask #calendar_addtask_details1 .subitem{margin:5px;display:block}.div-addtask #calendar_addtask_details1 .subitem .span_done{margin:0 30px}.div-addtask #calendar_addtask_details1 .subitem .span_done img{position:relative;top:4px;width:16px;height:16px}.div-addtask #calendar_addtask_details1 .calendar_addevent_details_lnk_timezone{margin:0 0 0 20px}.div-addtask #calendar_addtask_details1 .subitem .done{width:45px}.div-addtask #calendar_addtask_details1 .ui-spinner-buttons{top:-2px!important}@-moz-document url-prefix(){.div-addtask #calendar_addtask_details1 .ui-spinner-buttons{top:-14px!important}}.div-addtask #calendar_addtask_details1 .ui-spinner-buttons .ui-spinner-up{height:7px!important}.div-addtask #calendar_addtask_details1 .ui-spinner-buttons .ui-spinner-down{height:8px!important}.div-addtask #calendar_addtask_details1 .subitem .span_done.noAction{background-image:url("../../../prototype/modules/calendar/img/gray.png");background-repeat:no-repeat}.div-addtask #calendar_addtask_details1 .subitem .span_done.inProcess{background-image:url("../../../prototype/modules/calendar/img/yellow.png");background-repeat:no-repeat}.div-addtask #calendar_addtask_details1 .subitem .span_done.finished{background-image:url("../../../prototype/modules/calendar/img/green.png");background-repeat:no-repeat}.div-addtask #calendar_addtask_details1 .subitem .span_done.canceled{background-image:url("../../../prototype/modules/calendar/img/red.png");background-repeat:no-repeat}#calendar_addtask_details4{margin:0}#calendar_addtask_details5{margin:-2px 0 0 0}#calendar_addtask_details7{margin:3px 0 0 0}.div-addtask #calendar_addtask_details1 .subitem .span_done label{position:relative;left:28px}.div-addtask fieldset#calendar_addtask_details5.tab-level2{margin:0}.div-addtask #calendar_addtask_details8 .parent{width:746px;min-height:208px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-top{width:745px;height:25px;background:#e8f4fd;border-left:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #CCC;border-top:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom{width:745px;height:208px;overflow:auto;float:left;border-left:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each{height:20px}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each:hover{background:#fff2f2;cursor:pointer}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .date-hour{overflow:hidden;width:140px;float:left;height:20px}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .date-hour span{margin:8px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .user{overflow:hidden;width:150px;float:left;height:20px;border-left:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .user span{margin:8px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .attribute{overflow:hidden;width:130px;float:left;height:20px;border-left:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .attribute span{margin:8px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .beforeValue{overflow:hidden;width:150px;float:left;height:20px;border-left:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .beforeValue span{margin:8px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .afterValue{overflow:hidden;width:150px;float:left;height:20px;border-left:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .afterValue span{margin:8px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-top .date-hour{width:140px;float:left;background:#e8f4fd;height:20px;text-align:center}.div-addtask #calendar_addtask_details8 .parent .child-top .date-hour span{display:block;padding:6px;font-weight:bold;color:#2e6e9e}.div-addtask #calendar_addtask_details8 .parent .child-top .user{width:150px;float:left;background:#e8f4fd;height:20px;font-weight:bold;color:#2e6e9e;text-align:center}.div-addtask #calendar_addtask_details8 .parent .child-top .user span{display:block;padding:6px}.div-addtask #calendar_addtask_details8 .parent .child-top .attribute{width:130px;float:left;background:#e8f4fd;height:20px;font-weight:bold;color:#2e6e9e;text-align:center}.div-addtask #calendar_addtask_details8 .parent .child-top .attribute span{display:block;padding:6px}.div-addtask #calendar_addtask_details8 .parent .child-top .beforeValue{width:150px;float:left;background:#e8f4fd;height:20px;font-weight:bold;color:#2e6e9e;text-align:center}.div-addtask #calendar_addtask_details8 .parent .child-top .beforeValue span{display:block;padding:6px}.div-addtask #calendar_addtask_details8 .parent .child-top .afterValue{width:150px;float:left;background:#e8f4fd;height:20px;font-weight:bold;color:#2e6e9e;text-align:center}.div-addtask #calendar_addtask_details8 .parent .child-top .afterValue span{display:block;padding:6px}.new-message-input.email-text{resize:none;height:16px;overflow:hidden;vertical-align:middle;cursor:text}.local-connect{width:16px;height:16px;background:url("images/connect_delete.gif") no-repeat;display:inline-block;cursor:pointer} 
     1body{overflow:hidden}.expressomail-attachments{background:#EEE;font-size:11px;width:100%;margin:0;padding:0}.expressomail-attachments-label{display:block;float:left}ul.expressomail-attachments-list{list-style:none;display:block;margin-left:40px}.expressomail-attachments-link{font-size:11px}textarea{overflow:hidden;height:auto}a.rich{padding:5px;cursor:pointer;text-align:center}button.adress_button{width:47px;text-align:center}span.ui-icon.expressomail-icon-read-confirmation{background-image:url(images/notification.gif)!important;background-position:0 0;width:24px;height:24px}span.ui-icon.expressomail-icon-save{background-image:url(images/disk.png)!important;background-position:0 2px;width:16px;height:16px;background-size:13px}span.ui-icon.expressomail-icon-signature{background-image:url(images/signature.gif)!important;background-position:8px 2px;width:24px;height:24px;background-size:13px}span.ui-icon.expressomail-icon-encryption{background-image:url(images/lock.png)!important;background-position:7px 1px;width:24px;height:24px;background-size:13px}span.ui-icon.expressomail-icon-send{background-image:url(images/send.png)!important;background-position:-2px 2px;width:25px;height:16px;background-size:19px}span.ui-icon.expressomail-icon-save_and_send{background-image:url(images/save_and_send.png)!important;width:25px;height:16px;background-size:17px}span.ui-icon.expressomail-icon-important{background-image:url(images/important.png)!important;background-position:7px 1px;width:24px;height:24px;background-size:13px}.expressomail-thumbs{font-size:11px;width:100%;max-width:100%;margin:20px 0 0 0;border-top:1px solid #AAA;float:left}.expressomail-thumbs span.message_tips{display:block;padding-left:18px;line-height:18px;height:18px;background-image:url(images/menu/ktip.png);background-repeat:no-repeat}ul.expressomail-thumbs-list{list-style:none;margin:0;padding:0}ul.expressomail-thumbs-list li{height:80px;max-width:120px;max-height:80px;display:block;float:left;margin:5px;padding:0}ul.expressomail-thumbs-list li img{width:auto;height:100%;border:2px solid #fde7bc}.expressomail-thumbs-link{font-size:11px}.jcarousel-container{width:auto}table.expressomail-message-body{width:100%;height:100%}table.table_message,div.table_message{background:#96b3d3;background:-moz-linear-gradient(top,#96b3d3 0,#b4c9e4 30%,#d9e6ef 65%,#e2e9f1 70%,#e9f0f8 78%,#e8f1fa 83%,#dbe5ef 96%,#d9e3ed 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#96b3d3),color-stop(30%,#b4c9e4),color-stop(65%,#d9e6ef),color-stop(70%,#e2e9f1),color-stop(78%,#e9f0f8),color-stop(83%,#e8f1fa),color-stop(96%,#dbe5ef),color-stop(100%,#d9e3ed));background:-webkit-linear-gradient(top,#96b3d3 0,#b4c9e4 30%,#d9e6ef 65%,#e2e9f1 70%,#e9f0f8 78%,#e8f1fa 83%,#dbe5ef 96%,#d9e3ed 100%);background:-o-linear-gradient(top,#96b3d3 0,#b4c9e4 30%,#d9e6ef 65%,#e2e9f1 70%,#e9f0f8 78%,#e8f1fa 83%,#dbe5ef 96%,#d9e3ed 100%);background:-ms-linear-gradient(top,#96b3d3 0,#b4c9e4 30%,#d9e6ef 65%,#e2e9f1 70%,#e9f0f8 78%,#e8f1fa 83%,#dbe5ef 96%,#d9e3ed 100%);background:linear-gradient(top,#96b3d3 0,#b4c9e4 30%,#d9e6ef 65%,#e2e9f1 70%,#e9f0f8 78%,#e8f1fa 83%,#dbe5ef 96%,#d9e3ed 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#96b3d3',endColorstr='#d9e3ed',GradientType=0)}table.expressomail-message-body tr{vertical-align:top}.table_message_options{background-color:#000;-moz-border-collapse:separate;border-color:gray;border-spacing:0;border-style:outset;border-width:.01;cursor:default;padding:1px;-moz-border-radius:3px;-webkit-border-radius:3px}.table_message_options_ie{border-collapse:collapse;background-color:#000;border-color:gray;border-spacing:0;border-style:outset;border-width:1;cursor:default;padding:1px;-moz-border-radius:3px;-webkit-border-radius:3px}.table_message{background-color:#000;-moz-border-collapse:separate;border-color:gray;border-radius:3px 3px 3px 3px;border-spacing:0;border-style:outset;border-width:1px;cursor:default;padding:1px;-moz-border-radius:3px;-webkit-border-radius:3px}.div_message_scroll{background:none repeat scroll 0 0 WHITE;overflow:auto;padding-right:5px}a.message-attach-link{margin-left:20px}.messagescol td label{padding-right:20px}.messagescol td.message-general-options .checkbox{margin:5px 5px 0 0}.ui-dialog-dragging{opacity:.4;filter:alpha(opacity=40)}.context-menu-item.icon-important{background-image:url(images/important.png);background-position:6px 5px!important}.context-menu-item.icon-export{background-image:url(images/export.png)}.context-menu-item.icon-move{background-image:url(images/move.png)}.context-menu-item.icon-seen{background-image:url(images/seen.gif)}.context-menu-item.icon-unseen{background-image:url(images/unseen.gif)}.context-menu-item.icon-normal{background-image:url(images/door.png)}.context-menu-item.icon-followupflag{background-image:url(images/door.png)}.context-menu-item.icon-quick-add{background-image:url(images/vcard_add.png)}.context-menu-item.icon-delete-box{background-image:url(images/user_delete.png)}.context-menu-item.icon-quick-search-contact{background-image:url(images/zoom.png)}.context-menu-item.icon-archive{background-image:url(images/archive.png)}.context-menu-item.icon-search-mail{background-image:url(images/menu/search.png)}.context-menu-item.icon-filter{background-image:url(images/menu/filters.png)}.context-menu-item.icon-edit-folder{background-image:url(images/menu/editfolders.png)}.context-menu-item.icon-share-mailbox{background-image:url(images/menu/usersfolders.png)}.context-menu-item.icon-label{background-image:url(images/menu/usersfolders.png)}.context-menu-item.icon-tag{background-image:url(images/menu/tag.png);background-size:12px;background-position:6px 2px!important}.context-menu-item.icon-empty-trash{background-image:url(images/menu/trash.png)}.context-menu-item.icon-queue{background-image:url(images/menu/queue.png)}.context-menu-item.icon-config{background-image:url(images/menu/config.png)}form.fileupload{margin:14px 0 0 -13px;float:left;margin-bottom:-20px}form.fileupload .files-list{margin-left:5px;margin-top:-14px;padding:.2em .7em}form.fileupload .files-list .delete-upload{top:7px}div.attachments-list{max-height:130px;overflow-y:auto;padding-top:5px}.button-files-upload{float:left}form.fileupload .ui-button .ui-button-text{line-height:2}form.fileupload .ui-button{margin-left:5px}form.fileupload .message-add-original-att{margin-left:0}.button.add.button-add-attachment{margin:-9px 0 0 8px}.button.upload{margin-bottom:4px}div.fileupload-buttonbar{padding:.2em .5em}.archive-error{color:#F00}.progress.in-progress{width:100px;height:12px}.row.fileupload-buttonbar{margin-top:-14px;padding:.2em .7em}.archive-attach.name{width:310px}.archive-attach.name label{display:block;position:absolute;left:136px;top:194px}.size{min-width:65px}.message-attach.name{width:200px}.message-attach.size{margin:0 4px 0 4px}.message-attach-error{color:red}.expressomail-qs-container{font-size:11px}.expressomail-qs-container legend{font-size:1.1em;font-weight:bold}.expressomail-qs-container #accordion{margin:5px}.expressomail-qs-container fieldset,.expressomail-qs-container div{margin:0}.expressomail-qs-container .ui-autocomplete-input{height:22px;width:200px;margin-right:-1px}.expressomail-qs-container #wrap-progressbar{height:22px;width:122px;float:left}.expressomail-qs-container #wrap-progressbar #inner-progressbar{text-align:center;width:100px}.expressomail-qs-container #wrap-progressbar #inner-progressbar span{font-size:10px;line-height:12px}.expressomail-qs-container #wrap-progressbar #inner-progressbar #progressbar{width:100px;height:10px}.expressomail-qs-container .clear{clear:both}.expressomail-qs-container fieldset{border:1px solid #AAA;border-radius:5px;margin:5px}.expressomail-qs-container #ul{list-style:none;margin:0;padding:0}.expressomail-qs-container #fieldset1{color:#444}.expressomail-qs-container #fieldset1 label{font-weight:bold;display:block}.expressomail-qs-container #list-acc-users li,.expressomail-qs-container #search-result-users li{margin-right:5px;border-radius:3px}.expressomail-qs-container #list-acc-mails li{margin-right:5px;padding-bottom:4px;border-radius:3px}.expressomail-qs-container #list-acc-users li:hover,.expressomail-qs-container #list-acc-mails li:hover,.expressomail-qs-container #search-result-users li:hover{background-color:#DDD}.expressomail-qs-container #list-acc-users li span.ui-icon,.expressomail-qs-container #list-acc-mails li span.ui-icon,.expressomail-qs-container #search-result-users li span.ui-icon{display:none;margin:2px}.expressomail-qs-container #list-acc-users li input,.expressomail-qs-container #list-acc-mails li input,.expressomail-qs-container #search-result-users li input{margin-top:5px}.expressomail-qs-container #list-acc-users li label,.expressomail-qs-container #list-acc-mails li label,.expressomail-qs-container #search-result-users li label{margin-top:-5px}.expressomail-qs-container #list-acc-users li:hover span,.expressomail-qs-container #list-acc-mails li:hover span,.expressomail-qs-container #search-result-users li:hover span{display:inline}.expressomail-qs-container #search-result-users li span.ui-icon{display:none}.expressomail-qs-container .ui-icon{float:right}.expressomail-qs-container #icon-bar1 .ui-icon{float:left;margin:0 3px}.expressomail-qs-container #icon-bar1 span{float:left;margin:2px 3px 0 0}.expressomail-qs-container .ui-icon-trash,.expressomail-qs-container .ui-icon-edit,.expressomail-qs-container .ui-icon-close,.expressomail-qs-container .ui-icon-plus,.expressomail-qs-container .ui-icon-pencil{background-color:#EEE}.expressomail-qs-container .ui-icon-trash:hover,.expressomail-qs-container .ui-icon-edit:hover,.expressomail-qs-container .ui-icon-close:hover,.expressomail-qs-container .ui-icon-plus:hover,.expressomail-qs-container .ui-icon-pencil:hover{background-color:#BBB}.expressomail-qs-container .ui-autocomplete-input{width:170px}.expressomail-qs-container .ui-accordion .ui-accordion-content{padding:5px}.expressomail-qs-container .foot-note{width:905px;padding:5px;margin-top:20px;border-top:1px solid #ddd}.expressomail-qs-container .acc-list{font-family:"Trebuchet MS",Tahoma,Verdana,Arial,sans-serif;font-size:11px;color:#555}.expressomail-qs-container .acc-list h3{font-family:"Trebuchet MS",Tahoma,Verdana,Arial,sans-serif;font-size:11px;color:#555;margin:0;padding:5px 3px;background-color:#fff}.expressomail-qs-container .acc-list ul{margin:5px 0}.expressomail-qs-container .acc-list ul li{border-radius:3px;padding:5px}.expressomail-qs-container .acc-list ul li:hover{background-color:#DDD}.expressomail-qs-container .acc-list ul li.active{background-color:#eb8f00}.expressomail-qs-container .acc-list ul li strong{display:block}.expressomail-qs-container .acc-list ul li em{display:block}.expressomail-qs-container #feedback{font-size:1.4em}.expressomail-qs-container #selectable .ui-selecting{background:#ddecf7}.expressomail-qs-container #selectable .ui-selected{background:#72a9d3;color:white}.expressomail-qs-container #selectable{list-style-type:none;margin:0;padding:0;width:100%}.expressomail-qs-container ul#selectable{overflow:hidden;width:444px;height:250px}.expressomail-qs-container ul#selectable li{width:435px;overflow:hidden}.expressomail-qs-container ul#selectable li.ui-selected{width:100%}.expressomail-qs-container ul#selectable li div{width:6000px}.expressomail-qs-container .ui-button-icon-only{width:1.2em}.expressomail-qs-container .ui-icon{margin-left:-8px}.expressomail-qs-container .ui-widget button{border:0 solid}.expressomail-qs-container .menu-control{float:right;margin-left:400px;position:absolute;z-index:100;padding-top:5px}.expressomail-qs-container .acc-list{width:444px;height:250px;float:left;border:1px solid #DDD;background-color:#EEE;border-radius:3px;margin-left:1px;margin:10px 5px 5px 1px}.expressomail-qs-container .details-container{width:300px;height:246px;float:right;margin:5px 0}.expressomail-qs-container .acc-list .demo{width:100%;margin-top:20px}.dialog-modal.expressomail-qs-container{height:416px;padding:5px}.ui-dialog .ui-dialog-buttonpane{padding:0;border:0;margin:0}.expressomail-qs-container .menu-control .ui-button-text-only .ui-button-text{padding:.1em .6em}fieldset.search-field,fieldset.search-catalog-options{border:1px solid #cfcfcf;padding:5px}fieldset.search-field input,fieldset.search-catalog-options select{display:inline-block;border:0;background-color:#FFF}fieldset.search-field span{display:inline-block;margin:0 0 -3px 5px}fieldset.search-field{max-width:190px;width:190px;margin:0;text-align:left;display:inline}fieldset.search-field input{max-width:165px;width:165px}fieldset.search-catalog-options{max-width:124px;width:120px;margin:0;text-align:left;display:inline}fieldset.search-catalog-options select{max-width:120px;width:120px}.ui-dialog .ui-dialog-titlebar-minimize{height:18px;margin:-10px 0 0;padding:1px;position:absolute;right:1.8em;top:50%;width:19px}.ui-dialog-buttonpane .ui-button{margin-top:0;padding-top:0}.button-mod{margin-top:-2.5em}.print-all-messages h1{font-size:1.35em}.print-all-messages h2{font-size:1.05em}.print-all-messages tbody{font-size:.95em}.print-all-messages thead td{font-weight:bold;padding:3px;border-bottom:solid 2px #999}.print-all-messages tbody td{border-bottom:solid 1px #ccc}.print-all-messages img{display:none}.print-all-messages input{display:none}pre{white-space:pre-wrap!important;white-space:-moz-pre-wrap!important;white-space:-pre-wrap!important;white-space:-o-pre-wrap!important;word-wrap:break-word!important;font-family:monospace!important;font-size:11px!important}.checkbox{border:none!important}textarea{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px}.whiteSpace{width:2px}.table_box{width:100%;color:black;background:#fff;border-bottom:1px solid #f4f8fb;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;cursor:pointer;table-layout:fixed}.em_div_write_msg{height:24px;background:transparent}.td_msg{border-width:0}.span-sender:hover{text-decoration:underline}.th_resizable{padding-left:3px!important;border-left:solid 1px #999;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.td_resizable{padding-left:1px;border:0;border-left:solid 1px #dde1dd;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-right-width:0!important}.tr_msg_unread{font-weight:bold!important}.table_box tr{border:0;height:20px}.table-info-quota{table-layout:fixed}.td-info-quota{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tr_msg_read{color:#3f3f3f;background-color:#fff;-moz-user-select:none}.tr_msg_read2{color:#3f3f3f;background-color:#dee8f0;-moz-user-select:none}.selected_msg{background-color:#ffffcb}.flagged_msg{color:red}.show_img_link{width:100%;color:black;font-weight:bold;background-color:#ffc;border-bottom:1px solid #cfcfcf;cursor:pointer;-moz-user-select:none}.show_img_link:hover{color:#000!important}.action_info_table{border-spacing:0}.action_info_th{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;border-width:0;padding:1px 10px 0 10px;border-style:inset inset inset inset;border-color:gray gray gray gray;background-color:#fad163;-moz-border-radius:6px 6px 6px 6px}.message_header{background-color:#abc6e1}.message_header td{padding:0}.table_message_ruler{width:10px;border:0;border-left:1px dotted #88a;display:none;position:absolute;z-index:10;height:300px}.table_message_header_box{width:100%;color:black;border-style:solid;border-width:0;border-collapse:collapse;border-color:#bbb;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;cursor:pointer;table-layout:fixed}.font-menu{color:#000}.font-menu-sel{color:#00f}.font-menu,.font-menu-sel{float:left;clear:left;overflow:hidden;white-space:nowrap;padding-left:5px;margin-right:5px;text-decoration:none;text-align:center}.menu-sel{text-decoration:none;text-align:center;color:#00f;height:20px;width:220px;background-color:#f7f7f7;margin-bottom:0;border:1px solid #4a79b1;border-bottom:0;padding:0 5px 0 0;-moz-border-radius:9px 9px 0 0;-moz-user-select:none;-webkit-border-radius:9px 9px 0 0;border-radius:9px 9px 0 0;cursor:pointer}.menu{text-decoration:none;text-align:center;height:20px;width:220px;background-color:#c8d7ea;margin-bottom:0;border:1px solid #f4f7fc;border-bottom:1px solid #4a79b1;padding:0 5px 0 0;-moz-border-radius:9px 9px 0 0;-moz-user-select:none;-webkit-border-radius:9px 9px 0 0;border-radius:9px 9px 0 0;cursor:pointer}.last_menu{border-bottom:1px solid #4a79b1;-moz-border-radius:0}.table_top{background-color:#fff;padding:1px 1px 1px 1px;height:16px;cursor:default;margin:0;border-width:0 1px 1px 1px;border-style:outset outset outset outset;border-color:black black black black}.tr_message_header{background-color:#eee;font-family:Verdana,Arial,Helvetica,sans-serif;cursor:default;border-style:none none none none;-moz-border-radius:0}.tr_message_body{background-color:#fff;cursor:default;-moz-border-radius:9px 9px 9px 9px}.message_body{background-color:#fff;cursor:default;-moz-border-radius:9px 9px 9px 9px}.header_message_field{font-weight:bold}.suggestion_list{background:white;border:1px solid;padding:4px}.suggestion_list ul{padding:0;margin:0;list-style-type:none}.suggestion_list a{text-decoration:none;color:navy}.suggestion_list .selected{background:navy;color:white}.suggestion_list .selected a{color:white}#autosuggest{display:none}div#tipDiv{position:absolute;visibility:hidden;left:0;top:0;z-index:10000;background-color:#efefef;border:1px solid #337;width:220px;padding:0;color:#000;font-size:11px;line-height:1.2;cursor:pointer}.richtext_toolbar{background-color:#c0c0c0}.imagebutton{border:solid 2px #c0c0c0;background-color:#c0c0c0;float:left}.select_richtext{float:left}.sel_color{border-width:1px;border-color:#fff;border-style:solid;cursor:pointer}.unsel_color{border-width:1px;border-color:#bbb;border-style:solid}.dtree{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:8px;color:#000;background-color:#fff}.dtree img{border:0;vertical-align:middle}.dtree a{font-family:Verdana,Arial,Helvetica,sans-serif;color:#000;white-space:nowrap}.dtree table{margin-top:0;padding:0}.dtree td{padding:0}.folderscol{width:100%}.messagescol{width:100%;padding:0}.menu-folders{text-align:center;text-decoration:none;font:bold 12px Arial,Helvetica,sans-serif;color:#063;width:100%;height:20px;border-right:1px solid #000;border-left:1px solid #000;border-top:1px solid #000;cursor:default;-moz-border-radius:9px 9px 0 0}.content-menu{padding:0;background-image:url(../../../phpgwapi/templates/default/images/bgBlockContent.jpg)}.content-menu-td{margin-left:5px}.content-menu-td:hover{background-color:#fff;border:1px solid #ccc}.content-folders{width:162px;padding:0;position:relative;overflow:auto}.filter{font-family:Arial,Helvetica,sans-serif;font-size:8px;background-color:#fff}.filter img{border:0;vertical-align:middle}.filter a{font-family:Arial,Helvetica,sans-serif;color:#000;white-space:nowrap}.message_options_trash{background-image:url(images/page_white_delete.png);background-repeat:no-repeat;background-position:left center;padding:0 6pt 1pt 14pt}.message_options_move{background-image:url(images/move.png);background-repeat:no-repeat;background-position:left center;padding:0 6pt 1pt 14pt}.message_options_print{background-image:url(images/print.png);background-repeat:no-repeat;background-position:left center;padding:0 6pt 1pt 14pt}.message_options_export{background-image:url(images/export.png);background-repeat:no-repeat;background-position:left center;padding:0 6pt 1pt 14pt}.message_options_import{background-image:url(images/import.png);background-repeat:no-repeat;background-position:left center;padding:0 6pt 1pt 14pt}.message_options_inactive{white-space:nowrap;color:#999;padding-right:0!important}.message_options_active{white-space:nowrap;color:#900;font-weight:bold!important;cursor:pointer;padding-right:0!important}.message_options{cursor:pointer;color:#114fa4;white-space:nowrap;font-weight:bold;padding-right:0!important}.message_options_over{cursor:pointer;white-space:nowrap;color:#fc6103;font-weight:bold!important;padding-right:0!important}.reply_options{cursor:pointer;color:white;white-space:nowrap;font-weight:bold}.reply_options_active{cursor:pointer;white-space:nowrap;color:yellow;text-decoration:underline;font-weight:bold!important}.class_search_div{position:relative;left:12px}.em_sidebox_menu{position:relative;left:2px;padding:0 13px 0 0;font-weight:bold;font-size:10px;color:#666;text-decoration:none;white-space:nowrap;font-family:sans-serif}.em_div_sidebox_menu{position:relative;cursor:pointer;left:17px}.catalog{font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:bold}div.quicksearchcontacts{border-width:1px;border-style:solid;broder-color:grey;overflow:auto;position:relative;left:10px;height:302px;width:577px}table.quicksearchcontacts{border-width:0;border-spacing:0;background-color:white;cursor:default}tr.quicksearchcontacts_unselected{background-color:white}tr.quicksearchcontacts_selected{background-color:#5598d7;color:white}td.quicksearchcontacts_cc{border-style:none}input.em_button_like_span{border:0 none!important;margin:0!important;padding:0!important;color:#114fa4!important;background:transparent none repeat scroll 0!important;font-family:Arial,Helvetica,sans-serif!important;font-size:11px!important;height:15px!important;font-weight:bold}.l{background-image:url(../../../phpgwapi/templates/default/images/foldertree_folder.png)}.sl{background-image:url(../../../phpgwapi/templates/default/images/foldertree_folderopen.png)}.dsused{background-image:url(../../../expressoMail1_2/templates/default/images/dsused.gif)}.divAppboxHeader{font-style:italic;font-weight:normal;font-variant:small-caps;color:#006!important;font-size:16px!important;text-align:center;padding:0}@media screen and (-webkit-min-device-pixel-ratio:0){input[type="file"]{background-color:#FFF;border:1px solid #e4e4e4;height:20px;width:350px;vertical-align:middle}}.local-messages-search-warning{cursor:pointer;cursor:hand;background:none repeat scroll 0 0 #feb;color:red;line-height:2em;font-size:1.2em;text-align:center}.new-event-win.active:focus,.new-task-win.active:focus{outline:0}.new-event-win.active body,.new-task-win.active body{line-height:1;color:black;background:white}.new-event-win.active ol,.new-event-win.active ul,.new-task-win.active ol,.new-task-win.active ul{list-style:none;list-style-image:none;padding-left:5px}.new-event-win.active table,.new-task-win.active table{border-collapse:separate;border-spacing:0}.new-event-win.active caption,.new-event-win.active th,.new-event-win.active td,.new-task-win.active caption,.new-task-win.active th,.new-task-win.active td{font-weight:normal}.new-event-win.active blockquote:before,.new-event-win.active blockquote:after,.new-event-win.active q:before,.new-event-win.active q:after,.new-task-win.active blockquote:before,.new-task-win.active blockquote:after,.new-task-win.active q:before,.new-task-win.active q:after{content:""}.new-event-win.active blockquote,.new-event-win.active q,.new-task-win.active blockquote,.new-task-win.active q{quotes:"" ""}.new-event-win.active .mail.name-special,.new-event-win.active .name.name-special,.new-task-win.active .mail.name-special,.new-task-win.active .name.name-special{padding:0 0 0 35px}.new-event-win.active .add-attendee-search.search-field,.new-task-win.active .add-attendee-search.search-field{width:249px}.new-event-win.active #calendar_addevent_details4,.new-task-win.active #calendar_addtask _details4{margin:10px 0 0 0}.new-event-win.active input,.new-task-win.active input{color:#000}.new-event-win.active #calendar_addevent_details5,.new-task-win.active #calendar_addtask_details5{margin:10px 0 11px 0}.new-event-win fieldset.tab-level2,.new-task-win fieldset.tab-level2{padding:0 5px;min-height:110px;max-height:310px;overflow:hidden}.new-event-win.active select,.new-task-win.active select{border:1px solid #cfcfcf;border-color:#cfcfcf;color:#555;background-color:#FFF}.new-event-win.active a:link,.new-event-win.active a:visited .new-task-win.active a:link,.new-task-win.active a:visited{color:#2e6e9e}.new-event-win.active dd,.new-event-win.active dl,.new-event-win.active dt,.new-task-win.active dd,.new-task-win.active dl,.new-task-win.active dt{margin:0}.new-event-win.active #divAppbox .new-task-win.active #divAppbox{overflow-x:auto;overflow-y:scroll}.new-event-win.active select .new-task-win.active select{border-color:#cfcfcf;color:#555;padding-left:0}.qtip-wrapper fieldset{padding:0;border:0}.new-event-win.active .fc-event-skin{border-color:#36C!important;background-color:#36C!important;color:white!important}.fc-event-vert .fc-event-bg{display:block!important}#new_event_map .map-event .fc-event-inner.fc-event-skin{border-style:dashed!important;border-width:2px!important;border-color:#36C!important;background-color:transparent!important}#new_event_map .map-event .fc-event-inner.fc-event-skin .fc-event-head,#new_event_map .map-event .fc-event-inner.fc-event-skin .fc-event-content{background-color:transparent!important;color:transparent!important}#new_event_map .map-event .ui-resizable-handle{display:block!important;color:black!important}div.new-event-win.active div.button-files-upload{margin:15px 0 0 0}fieldset.alarm{border:none!important;padding:0!important;margin:0!important}.new-task-win dl.block-add-attendee{width:350px}.new-task-win.active .add-attendee-search.search-field{width:322px}.new-task-win .menu-container.footer-container{width:774px}#content_folders .foldertree-skin-prognus span.selected{font-weight:bold!important}#content_folders .foldertree-skin-prognus span.trash{;background-image:url(../../../prototype/modules/mail/img/bin.png)}#content_folders .foldertree-skin-prognus span.drafts{background-image:url(../../../prototype/modules/mail/img/folder_page_white.png)}#content_folders .foldertree-skin-prognus span.spam{background-image:url(../../../prototype/modules/mail/img/mail-sprites.png);background-position:0 -989px}#content_folders .foldertree-skin-prognus span.sent{background-image:url(../../../prototype/modules/mail/img/mail-sprites.png);background-position:0 -1055px}#content_folders .foldertree-skin-prognus span.folder{display:block;padding-bottom:1px;padding-left:18px;padding-right:0;padding-top:1px;font-family:Lucida Grande,Lucida Sans,Arial,sans-serif}#content_folders .treeview .closed{display:block}.folders-loading{background:url(../../../prototype/modules/mail/img/loader.gif)!important;background-position:0 0!important;background-repeat:no-repeat!important}.draggin-box{cursor:pointer;background-color:#cdc5bf;float:left;width:auto;height:16px;border:1px solid #333;text-align:right;z-index:2000}.ui-draggin-default-image{float:left;text-align:right}.draggin-mail{float:left;background-image:url(../../../prototype/modules/mail/img/move.png);background-position:0 0;background-repeat:no-repeat;color:red;text-align:right;font-weight:bold;padding-right:5px;padding-left:25px;font-family:Lucida Grande,Lucida Sans,Arial,sans-serif;font-size:11px}.draggin-folder{float:left;background-image:url(../../../prototype/modules/mail/img/mail-sprites.png);background-position:0 -923px;background-repeat:no-repeat;padding-left:20px;color:red;text-align:right;font-weight:bold;padding-right:5px}.collapse_folders_td{cursor:pointer;width:12px;height:100%;border-radius:5px;border-left:1px solid #ccc}.collapse_folders_td.collapse_folders_td_over{border-left:1px solid #1b75bb}.folder-over{border:1px solid black}.floating-default{float:left;text-align:left}.collapse_folders_td .ui-icon.ui-icon-triangle-1-e{background-position:-37px -20px;width:8px;height:8px}.collapse_folders_td .ui-icon.ui-icon-triangle-1-w{width:8px;height:8px;background-position:-100px -20px}.float-menu{position:absolute;text-align:left}button.expressomail-button-icon-ative{color:#e17009!important;border:1px solid #e17009!important;background:none repeat scroll 0 0 #ffe1cc!important}.outoffice{width:295px;height:50px;overflow:hidden}.title-outoffice{margin-left:10px;font-family:verdana;font-size:1.2em}.outoffice span{margin:5px}#detalhes_contato img{margin-bottom:-4px}button.expressomail-button-icon-ative{color:#e17009!important;border:1px solid #e17009!important;background:none repeat scroll 0 0 #ffe1cc!important}.box{background-color:#dfeffc;border-radius:5px;-moz-border-radius:5px;border:1px solid #add9ed;display:inline-block;cursor:pointer;margin-top:1px;margin-right:1px;outline:0;padding:1px}.box span{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;color:#201b41;outline:0}.out-office-box{background-color:#dac407;border:1px solid #837c3f!important}.out-office-box span{color:#837c3f}.email-area{border-radius:5px;width:98.5%;padding:5px;border:1px solid #bbb;heigth:auto;max-height:115px;overflow-y:auto;cursor:text}.email-text{outline:0;width:15px;border:0;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px}.box-input{outline:0;border:0;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;display:none;width:40px}.hidden{display:none}.loading{background:url(../../../prototype/modules/mail/img/loader.gif)!important;background-position:0 0!important;background-repeat:no-repeat!important}.line-separator{background:url("images/linha.png") repeat-x scroll 0 8px transparent;clear:both}.box-draggable-hover{border:1px solid #474747}.box-loading{background:url("../../../prototype/modules/mail/img/loading.gif") no-repeat!important;background-size:17px auto!important}.box-info{background:url("images/information.png") no-repeat!important}input.required-fail{border-color:red}div.conteudo div.new-msg-head-data div.att-box{background-color:#dfeffc;border-radius:5px;-moz-border-radius:5px;border:1px solid #add9ed;display:inline-block;cursor:pointer;margin-top:3px;margin-right:3px;outline:0;padding:1px}div.conteudo div.new-msg-head-data div.att-box span.att-box-value{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;color:#201b41;outline:0}div.conteudo div.new-msg-head-data div.att-box span.att-box-loading{background:url("../../../prototype/modules/mail/img/loading.gif") no-repeat!important;display:inline-block;background-size:15px auto!important}div.conteudo div.new-msg-head-data div.att-box.invalid-email-box{background-color:#ea9aa0;border:1px solid #540303!important}div.new-msg-head-data div.email-area .invalid-email-box{color:#540303;background-color:#ea9aa0;border:1px solid #540303!important}div.new-msg-head-data div.email-area .box-selected{background-color:#bbb}.fileupload_msg_tooltip{width:99.7%;text-align:center;background:#dfeffc;font-weight:bold;border-radius:5px;height:115px;line-height:115px;font-size:larger}.fileupload_msg_tooltip.hover{background:#add9ed}.select-all-messages{min-height:20px;font-size:13px;font-family:Arial;white-space:nowrap;text-align:center}.select-all-messages .select-link{text-decoration:underline!important}.none-selected{color:#9f9f9f}.selected_shortcut_msg{color:white;background-color:#95a7fc}.current_selected_shortcut_msg{color:white;background-color:#5194d2}div.gray li{float:left;width:253px}div.gray li a.button.delete{float:right}.div-addtask #calendar_addtask_details1 .h1{width:100%}.div-addtask #calendar_addtask_details2 textarea{width:675px}.div-addtask .button-files-upload{width:100%}.div-addtask fieldset.block-add-attendee .search-result-list,fieldset.block-add-activity .search-result-list{width:330px}.new-event-win div.div-addevent,.new-task-win div.div-addtask{width:775px}.calendar-addevent-details-txt-timezone,.calendar-addtask-details-txt-timezone{width:212px}.div-addtask #calendar_addtask_details1 .time-previsao{width:40px}.div-addtask #calendar_addtask_details1 .date-previsao{width:80px}.div-addtask #calendar_addtask_details6{width:756px}.div-addtask #calendar_addtask_details1 .start-time{width:40px}.div-addtask #calendar_addtask_details1 .start-date{width:80px}.div-addtask #calendar_addtask_details1 .end-time{width:40px}.div-addtask #calendar_addtask_details1 .end-date{width:80px}.div-addtask #calendar_addtask_details1 .previsao-termino{margin:0 0 0 20px}.div-addtask #calendar_addtask_details1 .subitem{margin:5px;display:block}.div-addtask #calendar_addtask_details1 .subitem .span_done{margin:0 30px}.div-addtask #calendar_addtask_details1 .subitem .span_done img{position:relative;top:4px;width:16px;height:16px}.div-addtask #calendar_addtask_details1 .calendar_addevent_details_lnk_timezone{margin:0 0 0 20px}.div-addtask #calendar_addtask_details1 .subitem .done{width:45px}.div-addtask #calendar_addtask_details1 .ui-spinner-buttons{top:-2px!important}@-moz-document url-prefix(){.div-addtask #calendar_addtask_details1 .ui-spinner-buttons{top:-14px!important}}.div-addtask #calendar_addtask_details1 .ui-spinner-buttons .ui-spinner-up{height:7px!important}.div-addtask #calendar_addtask_details1 .ui-spinner-buttons .ui-spinner-down{height:8px!important}.div-addtask #calendar_addtask_details1 .subitem .span_done.noAction{background-image:url("../../../prototype/modules/calendar/img/gray.png");background-repeat:no-repeat}.div-addtask #calendar_addtask_details1 .subitem .span_done.inProcess{background-image:url("../../../prototype/modules/calendar/img/yellow.png");background-repeat:no-repeat}.div-addtask #calendar_addtask_details1 .subitem .span_done.finished{background-image:url("../../../prototype/modules/calendar/img/green.png");background-repeat:no-repeat}.div-addtask #calendar_addtask_details1 .subitem .span_done.canceled{background-image:url("../../../prototype/modules/calendar/img/red.png");background-repeat:no-repeat}#calendar_addtask_details4{margin:0}#calendar_addtask_details5{margin:-2px 0 0 0}#calendar_addtask_details7{margin:3px 0 0 0}.div-addtask #calendar_addtask_details1 .subitem .span_done label{position:relative;left:28px}.div-addtask fieldset#calendar_addtask_details5.tab-level2{margin:0}.div-addtask #calendar_addtask_details8 .parent{width:746px;min-height:208px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-top{width:745px;height:25px;background:#e8f4fd;border-left:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #CCC;border-top:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom{width:745px;height:208px;overflow:auto;float:left;border-left:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each{height:20px}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each:hover{background:#fff2f2;cursor:pointer}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .date-hour{overflow:hidden;width:140px;float:left;height:20px}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .date-hour span{margin:8px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .user{overflow:hidden;width:150px;float:left;height:20px;border-left:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .user span{margin:8px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .attribute{overflow:hidden;width:130px;float:left;height:20px;border-left:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .attribute span{margin:8px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .beforeValue{overflow:hidden;width:150px;float:left;height:20px;border-left:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .beforeValue span{margin:8px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .afterValue{overflow:hidden;width:150px;float:left;height:20px;border-left:1px solid #CCC}.div-addtask #calendar_addtask_details8 .parent .child-bottom .child-bottom-each .afterValue span{margin:8px;float:left}.div-addtask #calendar_addtask_details8 .parent .child-top .date-hour{width:140px;float:left;background:#e8f4fd;height:20px;text-align:center}.div-addtask #calendar_addtask_details8 .parent .child-top .date-hour span{display:block;padding:6px;font-weight:bold;color:#2e6e9e}.div-addtask #calendar_addtask_details8 .parent .child-top .user{width:150px;float:left;background:#e8f4fd;height:20px;font-weight:bold;color:#2e6e9e;text-align:center}.div-addtask #calendar_addtask_details8 .parent .child-top .user span{display:block;padding:6px}.div-addtask #calendar_addtask_details8 .parent .child-top .attribute{width:130px;float:left;background:#e8f4fd;height:20px;font-weight:bold;color:#2e6e9e;text-align:center}.div-addtask #calendar_addtask_details8 .parent .child-top .attribute span{display:block;padding:6px}.div-addtask #calendar_addtask_details8 .parent .child-top .beforeValue{width:150px;float:left;background:#e8f4fd;height:20px;font-weight:bold;color:#2e6e9e;text-align:center}.div-addtask #calendar_addtask_details8 .parent .child-top .beforeValue span{display:block;padding:6px}.div-addtask #calendar_addtask_details8 .parent .child-top .afterValue{width:150px;float:left;background:#e8f4fd;height:20px;font-weight:bold;color:#2e6e9e;text-align:center}.div-addtask #calendar_addtask_details8 .parent .child-top .afterValue span{display:block;padding:6px}.new-message-input.email-text{resize:none;height:16px;overflow:hidden;vertical-align:middle;cursor:text}.local-connect{width:16px;height:16px;background:url("images/connect_delete.gif") no-repeat;display:inline-block;cursor:pointer} 
  • trunk/prototype/modules/attach_message/attach_message.js

    r7414 r7543  
    138138                        classes += '<span class="flags followupflagged" title="'+nameFollowupflag+'" style="background:'+rowObject.followupflagged.backgroundColor+';"><img style=" margin-left:-3px;" src="../prototype/modules/mail/img/flagChecked.png"></span>'; 
    139139                }else{                   
    140                         classes += '<span class="flags followupflagged" title="'+nameFollowupflag+'" style="background:'+rowObject.followupflagged.backgroundColor+';"><img src="../prototype/modules/mail/img/flagEditor.png"></span>'; 
     140                        classes += '<span class="flags followupflagged" title="'+nameFollowupflag+'" style="background:'+rowObject.followupflagged.backgroundColor+';background-image:url(../prototype/modules/mail/img/mail-sprites.png);background-position: 0 -864px;"</span>'; 
    141141                } 
    142142                 
  • trunk/prototype/modules/mail/css/foldertree.css

    r7542 r7543  
    33#content_folders .foldertree-skin-prognus span.trash {background-image: url(../img/bin.png);} 
    44#content_folders .foldertree-skin-prognus span.drafts {background-image: url(../img/folder_page_white.png);} 
    5 #content_folders .foldertree-skin-prognus span.spam {background-image: url(../img/folder_delete.png);} 
    6 #content_folders .foldertree-skin-prognus span.sent {background-image: url(../img/folder_go.png);} 
     5#content_folders .foldertree-skin-prognus span.spam {background-image: url(../img/mail-sprites.png); background-position: 0 -989px;} 
     6#content_folders .foldertree-skin-prognus span.sent {background-image: url(../img/mail-sprites.png); background-position: 0 -1055px;} 
    77#content_folders .foldertree-skin-prognus span.folder {display: block;padding-bottom: 1px;padding-left: 18px;padding-right: 0;padding-top: 1px; font-family : Lucida Grande, Lucida Sans, Arial, sans-serif;} 
    88#content_folders .treeview .closed {display:block;} 
  • trunk/prototype/modules/mail/js/followupflag.js

    r7247 r7543  
    253253                                                flagged.find("img").attr("src", "../prototype/modules/mail/img/flagChecked.png").css("margin-left","-3px"); 
    254254                                        }else{ 
    255                                                 flagged.find("img").attr("src", "../prototype/modules/mail/img/flagEditor.png").css("margin-left","0");                  
     255                                                flagged.css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"});                      
    256256                                        } 
    257257                                         
     
    361361                                                $('#td_message_followup_' + messageNumber + ', ' +  
    362362                                                        'tr[role="'+messageNumber+'_'+folder_name+'"] #td_message_followup_search_' + messageNumber).find(".flag-edited") 
    363                                                         .find("img").attr("src", "../prototype/modules/mail/img/flagEditor.png").css("margin-left","0"); 
     363                                                        .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"}); 
    364364                                        }else{ 
    365365                                                $('tr[role="'+messageNumber+'_'+folder_name+'"] #td_message_followup_search_' + messageNumber).attr('title', '').find(".flag-edited").css("background", '#CCC'); 
    366366                                                $('tr[role="'+messageNumber+'_'+folder_name+'"] #td_message_followup_search_' + messageNumber).find(".flag-edited") 
    367                                                         .find("img").attr("src", "../prototype/modules/mail/img/flagEditor.png").css("margin-left","0"); 
     367                                                        .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"}); 
    368368                                        } 
    369369                                        updateCacheFollowupflag(messageNumber, folder_name, false); 
  • trunk/prototype/modules/mail/js/followupflag.min.js

    r7538 r7543  
    1 MsgsCallbackFollowupflag={"#FollowupflagMessageIdError":function(){alert("N\u00e3o foi poss\u00edvel sinalizar esta mensagem. \nDetalhes do erro: mensagem n\u00e3o cont\u00e9m o atributo message-id.")},"#FollowupflagLimitError":function(){alert("N\u00e3o foi poss\u00edvel sinalizar esta mensagem. \nDetalhes do erro: limite de flags atingido para esta pasta.")},"#FollowupflagParamsError":function(){alert("N\u00e3o foi poss\u00edvel sinalizar esta mensagem. \nDetalhes do erro: mensagem n\u00e3o cont\u00e9m todos os atributos necess\u00e1rios.")}}; 
    2 function updateCacheFollowupflag(msgNumber,msgFolder,op){if(op){if(typeof msgNumber=="object")var extend=DataLayer.get("followupflagged",{filter:["AND",["IN","messageNumber",msgNumber],["IN","folderName",msgFolder]],criteria:{deepness:1}},true);else var extend=DataLayer.get("followupflagged",{filter:["AND",["=","messageNumber",msgNumber],["=","folderName",msgFolder]],criteria:{deepness:1}},true);if(extend!=""||extend!="undefined"||extend!=[])for(var i=0;i<extend.length;i++){if(!onceOpenedHeadersMessages[extend[i].folderName])onceOpenedHeadersMessages[extend[i].folderName]= 
    3 {};if(!onceOpenedHeadersMessages[extend[i].folderName][extend[i].messageNumber])onceOpenedHeadersMessages[extend[i].folderName][extend[i].messageNumber]=[];onceOpenedHeadersMessages[extend[i].folderName][extend[i].messageNumber]["followupflagged"]={};DataLayer.merge(onceOpenedHeadersMessages[extend[i].folderName][extend[i].messageNumber]["followupflagged"],extend[i])}}else onceOpenedHeadersMessages[msgFolder][msgNumber]["followupflagged"]=undefined} 
    4 function init_followup(data){winElement=data.window;selectedMessageIds=data.selectedMessages;folder=current_folder;(function($){$.widget("ui.combobox",{_create:function(){var self=this,select=this.element.hide(),selected=select.children(":selected"),value=selected.val()?selected.text():"";var input=this.input=$("<input>").insertAfter(select).val(value).autocomplete({delay:0,minLength:0,source:function(request,response){var matcher=new RegExp($.ui.autocomplete.escapeRegex(request.term),"i");response(select.children("option").map(function(){var text= 
    5 $(this).text();if(this.value&&(!request.term||matcher.test(text)))return{label:text.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+$.ui.autocomplete.escapeRegex(request.term)+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>"),value:text,option:this}}))},select:function(event,ui){ui.item.option.selected=true;self._trigger("selected",event,{item:ui.item.option})},change:function(event,ui){if(!ui.item){var matcher=new RegExp("^"+$.ui.autocomplete.escapeRegex($(this).val())+"$","i"),valid=false;select.children("option").each(function(){if($(this).text().match(matcher)){this.selected= 
    6 valid=true;return false}});if(!valid)if(select.has('option[value="custom"]').length>0)select.find("option:last").val("custom").html($(this).val()).attr("selected","selected");else{select.append(select.find("option:last").clone().val("custom").html($(this).val()));select.find('option[value="custom"]').attr("selected","selected")}}}}).addClass("ui-widget ui-widget-content ui-corner-left");input.data("autocomplete")._renderItem=function(ul,item){return $("<li></li>").data("item.autocomplete",item).append("<a>"+ 
    7 item.label+"</a>").appendTo(ul)};this.button=$("<button type='button'>&nbsp;</button>").attr("tabIndex",-1).attr("title","Show All Items").insertAfter(input).button({icons:{primary:"ui-icon-triangle-1-s"},text:false}).removeClass("ui-corner-all").addClass("ui-corner-right ui-button-icon").click(function(){if(input.autocomplete("widget").is(":visible")){input.autocomplete("close");return}$(this).blur();input.autocomplete("search","");input.focus()})},destroy:function(){this.input.remove();this.button.remove(); 
    8 this.element.show();$.Widget.prototype.destroy.call(this)}})})(jQuery);winElement.find('input[name="alarmDate"]').change(function(event){winElement.find('input[name="alarmTime"]').attr("disabled",$(this).val()==""?"disabled":false)});winElement.find('input[name="alarmDate"]').keyup(function(event){winElement.find('input[name="alarmTime"]').attr("disabled",$(this).val()==""?"disabled":false).val("")});winElement.find(".button").button().filter(".menu-configure-followupflag .cancel").click(function(){winElement.dialog("close")}).end().filter(".menu-configure-followupflag .save").click(function(){var saveFollowupflagged= 
    9 function(){var idFollowupflagged=winElement.find('[name="followupflagId"]').val();idFollowupflagged=idFollowupflagged.split(",");for(x=0;x<idFollowupflagged.length;x++)idFollowupflagged[x]=="false"?idFollowupflagged[x]=false:idFollowupflagged;for(i=0;i<selectedMessageIds.length;i++){var isDone=winElement.find('[name="done"]').is(":checked")?1:0;var alarmDate=false;var doneDate=false;var folder_name;var folders=[];var messages=[];var roles=get_selected_messages_search_role().split(",");for(var i=0;i< 
    10 selectedMessageIds.length;i++){if(currentTab==0){folder_name=current_folder;var messageNumber=selectedMessageIds[i]}else{var tr=$('[role="'+roles[i]+'"]');folder_name=$(tr).attr("name");var id=$(tr).attr("id");var messageNumber=id.replace(/_[a-zA-Z0-9]+/,"")}folders.push(folder_name);var followupflagged=DataLayer.merge({uid:User.me.id,followupflagId:followupflagId,folderName:folder_name,messageNumber:messageNumber,isDone:isDone,isSent:0,backgroundColor:backgroundColor},!!idFollowupflagged[i]?{id:idFollowupflagged[i]}: 
    11 {});if(alarmDate=winElement.find('[name="alarmDate"]').datepicker("getDate")){if(alarmTime=winElement.find('[name="alarmTime"]').datepicker("getDate"))alarmDate.set({hour:alarmTime.getHours(),minute:alarmTime.getMinutes()});followupflagged.alarmDeadline=alarmDate.toString("yyyy-MM-dd HH:mm:ss")}if(doneDate=winElement.find('[name="doneDate"]').datepicker("getDate")){if(doneTime=winElement.find('[name="doneTime"]').datepicker("getDate"))doneDate.set({hour:doneTime.getHours(),minute:doneTime.getMinutes()}); 
    12 followupflagged.doneDeadline=doneDate.toString("yyyy-MM-dd HH:mm:ss")}if(current_folder==folder_name)var flagged=$("#td_message_followup_"+messageNumber+', tr[role="'+messageNumber+"_"+folder_name+'"] #td_message_followup_search_'+messageNumber).find(".flag-edited");else var flagged=$('tr[role="'+messageNumber+"_"+folder_name+'"] #td_message_followup_search_'+messageNumber).find(".flag-edited");if(isDone)flagged.find("img").attr("src","../prototype/modules/mail/img/flagChecked.png").css("margin-left", 
    13 "-3px");else flagged.find("img").attr("src","../prototype/modules/mail/img/flagEditor.png").css("margin-left","0");var followupflagName=winElement.find('[name="name"] option:selected').text();if(current_folder==folder_name)$("#td_message_followup_"+messageNumber+", "+'tr[role="'+messageNumber+"_"+folder_name+'"] #td_message_followup_search_'+messageNumber).attr("title",followupflagName).find(".flag-edited").css("background",backgroundColor);else $('tr[role="'+messageNumber+"_"+folder_name+'"] #td_message_followup_search_'+ 
    14 messageNumber).attr("title",followupflagName).find(".flag-edited").css("background",backgroundColor);DataLayer.put("followupflagged",followupflagged)}DataLayer.commit(false,false,function(data){winElement.find(".menu-configure-followupflag .delete").button("option","disabled",false);updateCacheFollowupflag(selectedMessageIds,folders,true);winElement.dialog("close");alarmFollowupflagged("followupflagAlarms");var fail="success";$.each(data,function(index,value){if(typeof value=="string")fail=value}); 
    15 if(fail=="#FollowupflagMessageIdError")alert("Uma ou mais mensagens n\u00e3o puderam ser sinalizadas. \nDetalhes do erro: mensagem n\u00e3o cont\u00e9m o atributo message-id.");else if(fail=="#FollowupflagLimitError")alert("Uma ou mais mensagens n\u00e3o puderam ser sinalizadas. \nDetalhes do erro: limite de flags atingido para esta pasta.");$.each(selectedMessageIds,function(index,value){var flagged=DataLayer.get("followupflagged",{filter:["AND",["=","messageNumber",value],["=","folderName",folder_name]]}); 
    16 if(!flagged)$("#td_message_followup_"+value).find(".flag-edited").css("background","#cccccc")})});winElement.find(".menu-configure-followupflag .save").button("option","disabled",true)}selectAllFolderMsgs(false)};winElement.find('[name="name"]').next().data("autocomplete")._trigger("change");var backgroundColor=winElement.find('[name="backgroundColor"]').val();var followupflagId=winElement.find('[name="name"] option:selected').val();if(followupflagId=="custom"){DataLayer.put("followupflag",{name:winElement.find('[name="name"] option:selected').text(), 
    17 uid:User.me.id});DataLayer.commit(false,false,function(data){$.each(data,function(index,value){if(typeof value=="object")followupflagId=value.id});winElement.find('[name="name"] option[value="custom"]').val(followupflagId);saveFollowupflagged()})}else saveFollowupflagged()}).end().filter(".menu-configure-followupflag .delete").click(function(){if(selectedMessageIds.length==0)$(this).button("option","disabled",true);DataLayer.remove("followupflagged",false);DataLayer.get("followupflagged");var roles= 
    18 get_selected_messages_search_role().split(",");for(var i=0;i<selectedMessageIds.length;i++){if(currentTab==0){folder_name=current_folder;var messageNumber=selectedMessageIds[i]}else{var tr=$('[role="'+roles[i]+'"]');folder_name=$(tr).attr("name");var id=$(tr).attr("id");var messageNumber=id.replace(/_[a-zA-Z0-9]+/,"")}if(onceOpenedHeadersMessages[folder_name][messageNumber]["followupflagged"])if(onceOpenedHeadersMessages[folder_name][messageNumber]["followupflagged"].id){var flag_id=onceOpenedHeadersMessages[folder_name][messageNumber]["followupflagged"].id; 
    19 DataLayer.remove("followupflagged",flag_id);if(current_folder==folder_name){$("#td_message_followup_"+messageNumber+", "+'tr[role="'+messageNumber+"_"+folder_name+'"] #td_message_followup_search_'+messageNumber).attr("title","").find(".flag-edited").css("background","#CCC");$("#td_message_followup_"+messageNumber+", "+'tr[role="'+messageNumber+"_"+folder_name+'"] #td_message_followup_search_'+messageNumber).find(".flag-edited").find("img").attr("src","../prototype/modules/mail/img/flagEditor.png").css("margin-left", 
    20 "0")}else{$('tr[role="'+messageNumber+"_"+folder_name+'"] #td_message_followup_search_'+messageNumber).attr("title","").find(".flag-edited").css("background","#CCC");$('tr[role="'+messageNumber+"_"+folder_name+'"] #td_message_followup_search_'+messageNumber).find(".flag-edited").find("img").attr("src","../prototype/modules/mail/img/flagEditor.png").css("margin-left","0")}updateCacheFollowupflag(messageNumber,folder_name,false)}}DataLayer.commit(false,false,function(){winElement.dialog("close");alarmFollowupflagged("followupflagAlarms")}); 
    21 selectAllFolderMsgs(false)});winElement.find(":input").change(function(event){if(event.keyCode!="27"&&event.keyCode!="13")winElement.find(".menu-configure-followupflag .save").button("option","disabled",false)}).keydown(function(event){if(event.keyCode!="27"&&event.keyCode!="13")winElement.find(".menu-configure-followupflag .save").button("option","disabled",false)});winElement.find(".date").datepicker();winElement.find(".time").timepicker({});winElement.find('[name="name"]').combobox().next().next().click(function(event, 
    22 ui){$(".ui-autocomplete.ui-menu li").css("position","relative");$(".ui-autocomplete.ui-menu li a:gt(5)").append("<span class='ui-icon ui-icon-only ui-icon-close delete_followupflag'></span>").find("span").click(function(event){var id=$(".followupflag-configure").find("option")[$(this).parents("li").index()].value;var nameFollowupflag=$(".followupflag-configure").find("option")[$(this).parents("li").index()].text;var removeLi=$(this).parents("li");$.Zebra_Dialog(get_lang("All messages flagged with the flag type ")+ 
    23 "<strong>"+nameFollowupflag+"</strong>"+get_lang(" will be removed. This action cannot be undone. Want to continue?"),{"type":"question","custom_class":is_ie?"configure-zebra-dialog":"","title":"Aten\u00e7\u00e3o","buttons":["Sim","N\u00e3o"],"overlay_opacity":"0.5","onClose":function(caption){if(caption=="Sim"){var listFollowupflag=DataLayer.get("followupflagged",["=","followupflagId",id]);for(var i=0;i<listFollowupflag.length;i++)DataLayer.remove("followupflagged",listFollowupflag[i].id);DataLayer.remove("followupflag", 
    24 false);DataLayer.get("followupflag");DataLayer.remove("followupflag",""+id);DataLayer.commit(false,false,function(data){$('[title="'+nameFollowupflag+'"]').attr("title","").find("div").css({backgroundColor:"#CCC"});$(removeLi).remove();$('option[value="'+id+'"]').remove();$(".ui-autocomplete.ui-menu li:first");$(".followupflag-configure").find("option:first").attr("selected","selected");$(".ui-autocomplete-input").val($(".followupflag-configure").find("option:selected").text());for(var i=0;i<listFollowupflag.length;i++)if(listFollowupflag[i].id== 
    25 winElement.find('[name="followupflagId"]').val())winElement.find('[name="followupflagId"]').val("")});event.stopImmediatePropagation()}}});if(is_ie)$(".ZebraDialogOverlay").css("z-index","1006")})});winElement.find(".ui-corner-right.ui-button-icon").attr("title",get_lang("Show All Items"));winElement.find('[name="alarmDate"],[name="alarmTime"]').attr("disabled","disabled");winElement.find(".menu-configure-followupflag .delete").button("option","disabled",true);var idFollowupflag=winElement.find('[name="followupflagId"]').val(); 
    26 idFollowupflag=idFollowupflag.split(",");$.each(idFollowupflag,function(index,value){if(value!="false")winElement.find(".menu-configure-followupflag .delete").button("option","disabled",false)});winElement.find('[name="alarm"]').click(function(){if($(this).is(":checked"))winElement.find('[name="alarmDate"]').removeAttr("disabled");else winElement.find('[name="alarmDate"],[name="alarmTime"]').attr("disabled","disabled").val("")});if(winElement.find('[name="alarm"]').is(":checked"))winElement.find('[name="alarmDate"],[name="alarmTime"]').removeAttr("disabled"); 
    27 winElement.find('[name="done"]').click(function(){if($(this).is(":checked"))winElement.find(".input-done input").attr("disabled","disabled");else winElement.find(".input-done input").removeAttr("disabled")});winElement.find(".followupflag-color-fields").hide();winElement.find(".followupflag-color.sample-list .sample-item").click(function(){winElement.find(".menu-configure-followupflag .save").button("enable");winElement.find(".followupflag-color.sample-list .sample-item").removeClass("selected"); 
    28 $(this).addClass("selected");var color=$(this).attr("alt");winElement.find('[name="backgroundColor"]').css("background-color",color).val(color)});winElement.find(".followupflag-color.sample-list .sample-item.selected").trigger("click");winElement.find('[name="setColor"]').change(function(){if(winElement.find('[name="setColor"]').val()=="default"){winElement.find(".followupflag-color.sample-list").show("fast");winElement.find(".followupflag-color-fields").hide();winElement.find(".followupflag-color.sample-list .sample-item.selected").trigger("click")}else if(winElement.find('[name="setColor"]').val()== 
    29 "custom"){winElement.find(".followupflag-color-fields").show("fast");winElement.find(".followupflag-color.sample-list").hide();winElement.find(".colorwell").focus()}});if(winElement.find('[name="setColor"] option:selected').val()=="custom")winElement.find('[name="setColor"]').trigger("change");var colorpickerPreviewChange=function(color){winElement.find(".menu-configure-followupflag .save").button("enable");winElement.find(".colorwell-selected").val(color).css("background-color",color);winElement.find(".flag-color-preview").css("background", 
    30 color)};var f=$.farbtastic(winElement.find(".colorpicker"),colorpickerPreviewChange);var selected;winElement.find(".colorwell").each(function(){f.linkTo(this)}).focus(function(){if(selected)$(selected).removeClass("colorwell-selected");$(selected=this).addClass("colorwell-selected");f.linkTo(this,colorpickerPreviewChange);f.linkTo(colorpickerPreviewChange)});if(winElement.find('[name="setColor"] option:selected').val()=="custom")winElement.find(".colorwell").focus()} 
    31 function alarmFollowupflagged(alert_type,filter_list){var currentDate=(new Date).toString("dd/MM/yyyy");var data={alarmDeadline:false,doneDeadline:false,filtersAlarms:false};switch(alert_type){case "followupflagAlarms":$(".doneDeadline").remove();$(".alarmDeadline").remove();data.alarmDeadline=$.cookie("fadeAlarm")!=currentDate?true:false;data.doneDeadline=$.cookie("fadeCompleted")!=currentDate?true:false;break;case "filtersAlarms":$(".filtersDeadline").remove();data.filtersAlarms=$.cookie("fadeFilterAlarm")!= 
    32 currentDate?true:false;break;default:$(".gray").remove();data.alarmDeadline=$.cookie("fadeAlarm")!=currentDate?true:false;data.doneDeadline=$.cookie("fadeCompleted")!=currentDate?true:false;data.filtersAlarms=$.cookie("fadeFilterAlarm")!=currentDate?true:false;break}var startDate=(new Date).set({hour:0,minute:0,second:0}).toString("yyyy-MM-dd 00:00:00");var endDate=(new Date).set({hour:0,minute:0,second:0}).addHours(24).toString("yyyy-MM-dd 00:00:00");if(data.alarmDeadline){var decodeAlarms={"sent":[], 
    33 "task":[]};alarms=DataLayer.get("followupflagged",{filter:["AND",["<","alarmDeadline",endDate],["=","isSent","0"],["=","isDone","0"]],criteria:{deepness:1}});if(alarms.length>0){var itens=[];for(var i=0;i<alarms.length;i++){var date=Date.parseExact(alarms[i]["alarmDeadline"],"yyyy-MM-dd HH:mm:ss");alarms[i]["alarmDeadline"]=date.toString("dd/MM HH:mm");var nameFollowupflag=alarms[i]["followupflag"]["id"]<7?get_lang(alarms[i]["followupflag"]["name"]):alarms[i]["followupflag"]["name"];var li_alarm= 
    34 alarms[i]["alarmDeadline"]+" - "+nameFollowupflag+" - "+alarms[i]["message"]["headers"]["subject"];if(alarms[i]["doneDeadline"]!=""){var dateDone=Date.parseExact(alarms[i]["doneDeadline"],"yyyy-MM-dd HH:mm:ss");if(dateDone.getTime()<$.now())continue}if(date.getTime()<=$.now())decodeAlarms.sent.push({"msg_number":alarms[i]["messageNumber"],"msg_folder":alarms[i]["folderName"],"a":truncate(li_alarm,34),"id":alarms[i].id});else decodeAlarms.task.push({a:truncate(li_alarm,34),sentTime:date.getTime()/ 
    35 1E3,id:alarms[i].id,"msg_folder":alarms[i].folderName,"msg_number":alarms[i].messageNumber})}if(decodeAlarms.task.length)alarmDeadline.load(decodeAlarms.task);if(decodeAlarms.sent.length)data.alarmDeadline={alarms:decodeAlarms.sent,title:get_lang("Follow ups"),caption:itens.length==1?get_lang("You have one undone message today:"):get_lang("You have %1 follow ups due for today:",decodeAlarms.sent.length),type:"alarmDeadline"};else data.alarmDeadline=false}else data.alarmDeadline=false}if(data.doneDeadline){alarms= 
    36 DataLayer.get("followupflagged",{filter:["AND",[">","doneDeadline",startDate],["<","doneDeadline",endDate]],criteria:{deepness:1}});if(alarms.length>0){var itens=[];for(var i=0;i<alarms.length;i++){var date=Date.parseExact(alarms[i]["doneDeadline"],"yyyy-MM-dd HH:mm:ss");alarms[i]["doneDeadline"]=date.toString("dd/MM HH:mm");var nameFollowupflag=alarms[i]["followupflag"]["id"]<7?get_lang(alarms[i]["followupflag"]["name"]):alarms[i]["followupflag"]["name"];var li_alarm=alarms[i]["doneDeadline"]+" - "+ 
    37 nameFollowupflag+" - "+truncate(alarms[i]["message"]["headers"]["subject"],15);itens.push({a:truncate(li_alarm,34),id:alarms[i].id,"msg_folder":alarms[i].folderName,"msg_number":alarms[i].messageNumber})}data.doneDeadline={alarms:itens,title:get_lang("Done"),caption:itens.length==1?get_lang("You have one undone message today:"):get_lang("You have %1 follow ups due for today:",itens.length),type:"doneDeadline"}}else data.doneDeadline=false}if(data.filtersAlarms){alarms=filter_list;if(alarms.length> 
    38 0){var itens=[];for(var i=0;i<alarms.length;i++){alarms[i]["udate"]=(new Date(alarms[i]["udate"]*1E3)).toString("dd/MM HH:mm");var li_alarm=alarms[i]["udate"]+" - "+alarms[i]["from"]+" - "+alarms[i]["subject"];itens.push({"msg_number":alarms[i]["msg_number"],"msg_folder":alarms[i]["msg_folder"],a:truncate(html_entities(li_alarm),34),id:alarms[i].id})}data.filtersAlarms={alarms:itens,title:get_lang("Filter by sender"),caption:itens.length==1?get_lang("You have an archived message:"):get_lang("You have %1 messages archived:", 
    39 itens.length),type:"filtersDeadline",captions:{singular:"You have one undone message today:",plural:"You have %1 undone messages today:"}}}else data.filtersAlarms=false}for(var i in data)if(data[i]!=false)showAlarmsModal(data[i]);$(".gray").find(".content-alarm").hide();$(".gray").find('.header-alarm [name="header-icon"]').removeClass("minimize-alarm").addClass("maximize-alarm");if($(".gray").length>0)if($(".gray").hasClass("filtersDeadline")){$(".filtersDeadline").find(".content-alarm").show();$('.filtersDeadline .header-alarm [name="header-icon"]').removeClass("maximize-alarm").addClass("minimize-alarm")}else if($(".gray").hasClass("alarmDeadline")){$(".alarmDeadline").find(".content-alarm").show(); 
    40 $('.alarmDeadline .header-alarm [name="header-icon"]').removeClass("maximize-alarm").addClass("minimize-alarm")}else if($(".gray").hasClass("doneDeadline")){$(".doneDeadline").find(".content-alarm").show();$('.doneDeadline .header-alarm [name="header-icon"]').removeClass("maximize-alarm").addClass("minimize-alarm")}} 
    41 function showAlarmsModal(alarm){var ok_function=function(event,type,type_cookie){if($(event.target).parents("."+type).find('[name="stopAlert"]').is(":checked"))$.cookie(type_cookie,(new Date).toString("dd/MM/yyyy"),{expires:1})};var dialogText=DataLayer.render("../prototype/modules/mail/templates/followupflag_alarm_list.ejs",alarm);var titulo='<div class="header-alarm"><span class="img_title"></span><span class="title-alarm"><strong>'+alarm.title+'</strong></span><span name="header-icon" class="maximize-alarm"></span></div>'; 
    42 $("#freeow").freeow(titulo,dialogText,{classes:["gray",alarm.type],autoHide:false,startStyle:null,onClick:function(event){var type="";var type_cookie="";if($(this).hasClass("alarmDeadline")){type="alarmDeadline";type_cookie="fadeAlarm"}else if($(this).hasClass("doneDeadline")){type="doneDeadline";type_cookie="fadeCompleted"}else if($(this).hasClass("filtersDeadline")){type="filtersDeadline";type_cookie="fadeFilterAlarm"}if($(event.target).hasClass("stop-alert-alarm"))return;if($(event.target).hasClass("minimize-alarm")){$("."+ 
    43 type).find(".content-alarm").hide();$(event.target).removeClass("minimize-alarm").addClass("maximize-alarm");return}if($(event.target).hasClass("maximize-alarm")){$("."+type).find(".content-alarm").show();$(event.target).removeClass("maximize-alarm").addClass("minimize-alarm");return}if($(!!$.browser.safari?event.target.parentElement:event.target).hasClass("confirm-alarm")){ok_function(event,type,type_cookie);$("."+type).remove();return}return false}});$(".gray .background .content p").remove();$(".gray .icon").remove(); 
    44 $(".gray .close").remove();$("div.gray.alarmDeadline .button.delete").button({text:false,icons:{primary:"ui-icon-close"}});$(".content-alarm button").button()} 
    45 function cancelAlarm(element,idAlarm,messageNumber,folderName){$(element).parents("li").remove();var view="div.gray.alarmDeadline";var length=$(view).find("ul.message-list li").length;if(length>0){var msg="";if(length==1)msg=get_lang("You have a follow up due for today:");else msg=get_lang("You have %1 follow ups due for today:",length);$(view).find("span.subtitle-alarm strong").html(msg)}else $(view).remove();DataLayer.put("followupflagged",{id:idAlarm,isSent:"1",folderName:folderName,messageNumber:messageNumber, 
    46 uid:User.me.uid});DataLayer.commit()} 
    47 alarmDeadline={load:function(alarm){var currentDate=(new Date).toString("dd/MM/yyyy");if($.cookie("fadeAlarm")!=currentDate)for(var i=0;i<alarm.length;i++)this.addAlarm(alarm[i])},addAlarm:function(alarm){DataLayer.task(parseInt(alarm["sentTime"]),function(timestamp){var view="div.gray.alarmDeadline";if(!$(view+" li.message-item."+alarm.id).length){var currentDate=(new Date).toString("dd/MM/yyyy");if($.cookie("fadeAlarm")!=currentDate)if($("div.gray.alarmDeadline").length){$(view).find("ul.message-list").append(DataLayer.render("../prototype/modules/mail/templates/followupflag_alarmDeadline_add_item_list.ejs",alarm)); 
    48 var length=$(view).find("ul.message-list li").length;var msg="";if(length==1)msg=get_lang("You have a follow up due for today:");else msg=get_lang("You have %1 follow ups due for today:",length);$(view).find("span.subtitle-alarm strong").html(msg);$(view+" .button.delete").button({text:false,icons:{primary:"ui-icon-close"}})}else{var item={alarms:[alarm],title:get_lang("Follow ups"),caption:get_lang("You have one undone message today:"),type:"alarmDeadline"};showAlarmsModal(item)}}})}}; 
    49 $("#main_table").ready(function(){handlerMessageFilter=function(data){alarmFollowupflagged(null,data)};cExecute("$this.imap_functions.getFlaggedAlertMessages&folders="+fromRules,handlerMessageFilter)}); 
     1 
     2MsgsCallbackFollowupflag={'#FollowupflagMessageIdError':function(){alert('Não foi possível sinalizar esta mensagem. \nDetalhes do erro: mensagem não contém o atributo message-id.');},'#FollowupflagLimitError':function(){alert('Não foi possível sinalizar esta mensagem. \nDetalhes do erro: limite de flags atingido para esta pasta.');},'#FollowupflagParamsError':function(){alert('Não foi possível sinalizar esta mensagem. \nDetalhes do erro: mensagem não contém todos os atributos necessários.');}} 
     3function updateCacheFollowupflag(msgNumber,msgFolder,op){if(op){if(typeof msgNumber=='object'){var extend=DataLayer.get('followupflagged',{filter:['AND',['IN','messageNumber',msgNumber],['IN','folderName',msgFolder]],criteria:{deepness:1}},true);}else{var extend=DataLayer.get('followupflagged',{filter:['AND',['=','messageNumber',msgNumber],['=','folderName',msgFolder]],criteria:{deepness:1}},true);} 
     4if(extend!=""||extend!='undefined'||extend!=[]){for(var i=0;i<extend.length;i++){if(!(onceOpenedHeadersMessages[extend[i].folderName])){onceOpenedHeadersMessages[extend[i].folderName]={};} 
     5if(!(onceOpenedHeadersMessages[extend[i].folderName][extend[i].messageNumber])){onceOpenedHeadersMessages[extend[i].folderName][extend[i].messageNumber]=[];} 
     6onceOpenedHeadersMessages[extend[i].folderName][extend[i].messageNumber]['followupflagged']={};DataLayer.merge(onceOpenedHeadersMessages[extend[i].folderName][extend[i].messageNumber]['followupflagged'],extend[i]);}}}else{onceOpenedHeadersMessages[msgFolder][msgNumber]['followupflagged']=undefined;}} 
     7function init_followup(data){winElement=data.window;selectedMessageIds=data.selectedMessages;folder=current_folder;(function($){$.widget("ui.combobox",{_create:function(){var self=this,select=this.element.hide(),selected=select.children(":selected"),value=selected.val()?selected.text():"";var input=this.input=$("<input>").insertAfter(select).val(value).autocomplete({delay:0,minLength:0,source:function(request,response){var matcher=new RegExp($.ui.autocomplete.escapeRegex(request.term),"i");response(select.children("option").map(function(){var text=$(this).text();if(this.value&&(!request.term||matcher.test(text))) 
     8return{label:text.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+ 
     9$.ui.autocomplete.escapeRegex(request.term)+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>"),value:text,option:this};}));},select:function(event,ui){ui.item.option.selected=true;self._trigger("selected",event,{item:ui.item.option});},change:function(event,ui){if(!ui.item){var matcher=new RegExp("^"+$.ui.autocomplete.escapeRegex($(this).val())+"$","i"),valid=false;select.children("option").each(function(){if($(this).text().match(matcher)){this.selected=valid=true;return false;}});if(!valid){if(select.has('option[value="custom"]').length>0){select.find('option:last').val('custom').html($(this).val()).attr('selected','selected');}else{select.append(select.find('option:last').clone().val('custom').html($(this).val()));select.find('option[value="custom"]').attr('selected','selected');}}}}}).addClass("ui-widget ui-widget-content ui-corner-left");input.data("autocomplete")._renderItem=function(ul,item){return $("<li></li>").data("item.autocomplete",item).append("<a>"+item.label+"</a>").appendTo(ul);};this.button=$("<button type='button'>&nbsp;</button>").attr("tabIndex",-1).attr("title","Show All Items").insertAfter(input).button({icons:{primary:"ui-icon-triangle-1-s"},text:false}).removeClass("ui-corner-all").addClass("ui-corner-right ui-button-icon").click(function(){if(input.autocomplete("widget").is(":visible")){input.autocomplete("close");return;} 
     10$(this).blur();input.autocomplete("search","");input.focus();});},destroy:function(){this.input.remove();this.button.remove();this.element.show();$.Widget.prototype.destroy.call(this);}});})(jQuery);winElement.find('input[name="alarmDate"]').change(function(event){winElement.find('input[name="alarmTime"]').attr('disabled',($(this).val()==""?'disabled':false));});winElement.find('input[name="alarmDate"]').keyup(function(event){winElement.find('input[name="alarmTime"]').attr('disabled',($(this).val()==""?'disabled':false)).val('');});winElement.find('.button').button().filter('.menu-configure-followupflag .cancel').click(function(){winElement.dialog("close");}).end().filter('.menu-configure-followupflag .save').click(function(){var saveFollowupflagged=function(){var idFollowupflagged=winElement.find('[name="followupflagId"]').val();idFollowupflagged=idFollowupflagged.split(',');for(x=0;x<idFollowupflagged.length;x++){(idFollowupflagged[x]=="false")?idFollowupflagged[x]=false:idFollowupflagged;} 
     11for(i=0;i<selectedMessageIds.length;i++){var isDone=winElement.find('[name="done"]').is(':checked')?1:0;var alarmDate=false;var doneDate=false;var folder_name;var folders=[];var messages=[];var roles=get_selected_messages_search_role().split(',');for(var i=0;i<selectedMessageIds.length;i++){if(currentTab==0){folder_name=current_folder;var messageNumber=selectedMessageIds[i];}else{var tr=$('[role="'+roles[i]+'"]');folder_name=$(tr).attr('name');var id=$(tr).attr('id');var messageNumber=id.replace(/_[a-zA-Z0-9]+/,"");} 
     12folders.push(folder_name);var followupflagged=DataLayer.merge({uid:User.me.id,followupflagId:followupflagId,folderName:folder_name,messageNumber:messageNumber,isDone:isDone,isSent:0,backgroundColor:backgroundColor},!!idFollowupflagged[i]?{id:idFollowupflagged[i]}:{});if(alarmDate=winElement.find('[name="alarmDate"]').datepicker("getDate")){if(alarmTime=winElement.find('[name="alarmTime"]').datepicker("getDate")){alarmDate.set({hour:alarmTime.getHours(),minute:alarmTime.getMinutes()});} 
     13followupflagged.alarmDeadline=alarmDate.toString('yyyy-MM-dd HH:mm:ss');} 
     14if(doneDate=winElement.find('[name="doneDate"]').datepicker("getDate")){if(doneTime=winElement.find('[name="doneTime"]').datepicker("getDate")){doneDate.set({hour:doneTime.getHours(),minute:doneTime.getMinutes()});} 
     15followupflagged.doneDeadline=doneDate.toString('yyyy-MM-dd HH:mm:ss');} 
     16if(current_folder==folder_name){var flagged=$('#td_message_followup_'+messageNumber+', tr[role="'+messageNumber+'_'+folder_name+'"] #td_message_followup_search_'+messageNumber).find(".flag-edited");}else{var flagged=$('tr[role="'+messageNumber+'_'+folder_name+'"] #td_message_followup_search_'+messageNumber).find(".flag-edited");} 
     17if(isDone){flagged.find("img").attr("src","../prototype/modules/mail/img/flagChecked.png").css("margin-left","-3px");}else{flagged.css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"});} 
     18var followupflagName=winElement.find('[name="name"] option:selected').text();if(current_folder==folder_name){$('#td_message_followup_'+messageNumber+', '+'tr[role="'+messageNumber+'_'+folder_name+'"] #td_message_followup_search_'+messageNumber).attr('title',followupflagName).find(".flag-edited").css("background",backgroundColor);}else{$('tr[role="'+messageNumber+'_'+folder_name+'"] #td_message_followup_search_'+messageNumber).attr('title',followupflagName).find(".flag-edited").css("background",backgroundColor);} 
     19DataLayer.put('followupflagged',followupflagged);} 
     20DataLayer.commit(false,false,function(data){winElement.find('.menu-configure-followupflag .delete').button("option","disabled",false);updateCacheFollowupflag(selectedMessageIds,folders,true);winElement.dialog("close");alarmFollowupflagged('followupflagAlarms');var fail='success';$.each(data,function(index,value){if(typeof value=='string'){fail=value;}});if(fail=='#FollowupflagMessageIdError'){alert('Uma ou mais mensagens não puderam ser sinalizadas. \nDetalhes do erro: mensagem não contém o atributo message-id.');} 
     21else if(fail=='#FollowupflagLimitError'){alert('Uma ou mais mensagens não puderam ser sinalizadas. \nDetalhes do erro: limite de flags atingido para esta pasta.');} 
     22$.each(selectedMessageIds,function(index,value){var flagged=DataLayer.get('followupflagged',{filter:['AND',['=','messageNumber',value],['=','folderName',folder_name]]});if(!flagged) 
     23$('#td_message_followup_'+value).find(".flag-edited").css("background","#cccccc");});});winElement.find('.menu-configure-followupflag .save').button("option","disabled",true);} 
     24selectAllFolderMsgs(false);} 
     25winElement.find('[name="name"]').next().data("autocomplete")._trigger("change");var backgroundColor=winElement.find('[name="backgroundColor"]').val();var followupflagId=winElement.find('[name="name"] option:selected').val();if(followupflagId=='custom'){DataLayer.put('followupflag',{name:winElement.find('[name="name"] option:selected').text(),uid:User.me.id});DataLayer.commit(false,false,function(data){$.each(data,function(index,value){if(typeof value=='object'){followupflagId=value.id;}});winElement.find('[name="name"] option[value="custom"]').val(followupflagId);saveFollowupflagged();});}else{saveFollowupflagged();}}).end().filter('.menu-configure-followupflag .delete').click(function(){if(selectedMessageIds.length==0)$(this).button("option","disabled",true);DataLayer.remove('followupflagged',false);DataLayer.get('followupflagged');var roles=get_selected_messages_search_role().split(',');for(var i=0;i<selectedMessageIds.length;i++){if(currentTab==0){folder_name=current_folder;var messageNumber=selectedMessageIds[i];}else{var tr=$('[role="'+roles[i]+'"]');folder_name=$(tr).attr('name');var id=$(tr).attr('id');var messageNumber=id.replace(/_[a-zA-Z0-9]+/,"");} 
     26if(onceOpenedHeadersMessages[folder_name][messageNumber]['followupflagged']){if(onceOpenedHeadersMessages[folder_name][messageNumber]['followupflagged'].id){var flag_id=onceOpenedHeadersMessages[folder_name][messageNumber]['followupflagged'].id;DataLayer.remove('followupflagged',flag_id);if(current_folder==folder_name){$('#td_message_followup_'+messageNumber+', '+'tr[role="'+messageNumber+'_'+folder_name+'"] #td_message_followup_search_'+messageNumber).attr('title','').find(".flag-edited").css("background",'#CCC');$('#td_message_followup_'+messageNumber+', '+'tr[role="'+messageNumber+'_'+folder_name+'"] #td_message_followup_search_'+messageNumber).find(".flag-edited").css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"});}else{$('tr[role="'+messageNumber+'_'+folder_name+'"] #td_message_followup_search_'+messageNumber).attr('title','').find(".flag-edited").css("background",'#CCC');$('tr[role="'+messageNumber+'_'+folder_name+'"] #td_message_followup_search_'+messageNumber).find(".flag-edited").css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"});} 
     27updateCacheFollowupflag(messageNumber,folder_name,false);}}} 
     28DataLayer.commit(false,false,function(){winElement.dialog("close");alarmFollowupflagged('followupflagAlarms');});selectAllFolderMsgs(false);});winElement.find(':input').change(function(event){if(event.keyCode!='27'&&event.keyCode!='13') 
     29winElement.find('.menu-configure-followupflag .save').button("option","disabled",false);}).keydown(function(event){if(event.keyCode!='27'&&event.keyCode!='13') 
     30winElement.find('.menu-configure-followupflag .save').button("option","disabled",false);});winElement.find('.date').datepicker();winElement.find('.time').timepicker({});winElement.find('[name="name"]').combobox().next().next().click(function(event,ui){$(".ui-autocomplete.ui-menu li").css("position","relative");$(".ui-autocomplete.ui-menu li a:gt(5)").append("<span class='ui-icon ui-icon-only ui-icon-close delete_followupflag'></span>").find("span").click(function(event){var id=$('.followupflag-configure').find('option')[$(this).parents('li').index()].value;var nameFollowupflag=$('.followupflag-configure').find('option')[$(this).parents('li').index()].text;var removeLi=$(this).parents("li");$.Zebra_Dialog(get_lang('All messages flagged with the flag type ')+'<strong>'+nameFollowupflag+'</strong>'+get_lang(' will be removed. This action cannot be undone. Want to continue?'),{'type':'question','custom_class':(is_ie?'configure-zebra-dialog':''),'title':'Atenção','buttons':['Sim','Não'],'overlay_opacity':'0.5','onClose':function(caption){if(caption=='Sim'){var listFollowupflag=DataLayer.get('followupflagged',['=','followupflagId',id]);for(var i=0;i<listFollowupflag.length;i++) 
     31DataLayer.remove('followupflagged',listFollowupflag[i].id);DataLayer.remove('followupflag',false);DataLayer.get('followupflag');DataLayer.remove('followupflag',''+id);DataLayer.commit(false,false,function(data){$('[title="'+nameFollowupflag+'"]').attr('title','').find('div').css({backgroundColor:'#CCC'});$(removeLi).remove();$('option[value="'+id+'"]').remove();$('.ui-autocomplete.ui-menu li:first');$('.followupflag-configure').find('option:first').attr("selected","selected");$('.ui-autocomplete-input').val($('.followupflag-configure').find('option:selected').text());for(var i=0;i<listFollowupflag.length;i++){if(listFollowupflag[i].id==winElement.find('[name="followupflagId"]').val()){winElement.find('[name="followupflagId"]').val("");}}});event.stopImmediatePropagation();}}});if(is_ie) 
     32$(".ZebraDialogOverlay").css("z-index","1006");});});winElement.find('.ui-corner-right.ui-button-icon').attr('title',get_lang('Show All Items'));winElement.find('[name="alarmDate"],[name="alarmTime"]').attr("disabled","disabled");winElement.find('.menu-configure-followupflag .delete').button("option","disabled",true);var idFollowupflag=winElement.find('[name="followupflagId"]').val();idFollowupflag=idFollowupflag.split(',');$.each(idFollowupflag,function(index,value){if(value!="false"){winElement.find('.menu-configure-followupflag .delete').button("option","disabled",false);}});winElement.find('[name="alarm"]').click(function(){if($(this).is(":checked")){winElement.find('[name="alarmDate"]').removeAttr("disabled");}else{winElement.find('[name="alarmDate"],[name="alarmTime"]').attr("disabled","disabled").val('');}});if(winElement.find('[name="alarm"]').is(":checked")){winElement.find('[name="alarmDate"],[name="alarmTime"]').removeAttr("disabled");} 
     33winElement.find('[name="done"]').click(function(){if($(this).is(":checked")){winElement.find(".input-done input").attr("disabled","disabled");}else{winElement.find(".input-done input").removeAttr("disabled");}});winElement.find(".followupflag-color-fields").hide();winElement.find(".followupflag-color.sample-list .sample-item").click(function(){winElement.find('.menu-configure-followupflag .save').button("enable");winElement.find(".followupflag-color.sample-list .sample-item").removeClass("selected");$(this).addClass("selected");var color=$(this).attr('alt');winElement.find('[name="backgroundColor"]').css('background-color',color).val(color)});winElement.find(".followupflag-color.sample-list .sample-item.selected").trigger('click');winElement.find('[name="setColor"]').change(function(){if(winElement.find('[name="setColor"]').val()=="default"){winElement.find(".followupflag-color.sample-list").show("fast");winElement.find(".followupflag-color-fields").hide();winElement.find(".followupflag-color.sample-list .sample-item.selected").trigger('click');}else if(winElement.find('[name="setColor"]').val()=="custom"){winElement.find(".followupflag-color-fields").show("fast");winElement.find(".followupflag-color.sample-list").hide();winElement.find(".colorwell").focus();}});if(winElement.find('[name="setColor"] option:selected').val()=="custom"){winElement.find('[name="setColor"]').trigger("change");} 
     34var colorpickerPreviewChange=function(color){winElement.find('.menu-configure-followupflag .save').button("enable");winElement.find('.colorwell-selected').val(color).css('background-color',color);winElement.find('.flag-color-preview').css('background',color);} 
     35var f=$.farbtastic(winElement.find('.colorpicker'),colorpickerPreviewChange);var selected;winElement.find('.colorwell').each(function(){f.linkTo(this);}).focus(function(){if(selected){$(selected).removeClass('colorwell-selected');} 
     36$(selected=this).addClass('colorwell-selected');f.linkTo(this,colorpickerPreviewChange);f.linkTo(colorpickerPreviewChange);});if(winElement.find('[name="setColor"] option:selected').val()=="custom"){winElement.find(".colorwell").focus();}} 
     37function alarmFollowupflagged(alert_type,filter_list){var currentDate=new Date().toString("dd/MM/yyyy");var data={alarmDeadline:false,doneDeadline:false,filtersAlarms:false};switch(alert_type){case'followupflagAlarms':$('.doneDeadline').remove();$('.alarmDeadline').remove();data.alarmDeadline=$.cookie("fadeAlarm")!=currentDate?true:false;data.doneDeadline=$.cookie("fadeCompleted")!=currentDate?true:false;break;case'filtersAlarms':$('.filtersDeadline').remove();data.filtersAlarms=$.cookie("fadeFilterAlarm")!=currentDate?true:false;break;default:$('.gray').remove();data.alarmDeadline=$.cookie("fadeAlarm")!=currentDate?true:false;data.doneDeadline=$.cookie("fadeCompleted")!=currentDate?true:false;data.filtersAlarms=$.cookie("fadeFilterAlarm")!=currentDate?true:false;break;};var startDate=(new Date()).set({hour:0,minute:0,second:0}).toString('yyyy-MM-dd 00:00:00');var endDate=(new Date()).set({hour:0,minute:0,second:0}).addHours(24).toString('yyyy-MM-dd 00:00:00');if(data.alarmDeadline){var decodeAlarms={'sent':[],'task':[]};alarms=DataLayer.get('followupflagged',{filter:['AND',['<','alarmDeadline',endDate],['=','isSent','0'],['=','isDone','0']],criteria:{deepness:1}});if(alarms.length>0){var itens=[];for(var i=0;i<alarms.length;i++){var date=Date.parseExact(alarms[i]['alarmDeadline'],'yyyy-MM-dd HH:mm:ss');alarms[i]['alarmDeadline']=date.toString('dd/MM HH:mm');var nameFollowupflag=alarms[i]['followupflag']['id']<7?get_lang(alarms[i]['followupflag']['name']):alarms[i]['followupflag']['name'];var li_alarm=alarms[i]['alarmDeadline']+' - '+nameFollowupflag+' - '+alarms[i]['message']['headers']['subject'];if(alarms[i]['doneDeadline']!=''){var dateDone=Date.parseExact(alarms[i]['doneDeadline'],'yyyy-MM-dd HH:mm:ss');if(dateDone.getTime()<$.now()) 
     38continue;} 
     39if(date.getTime()<=$.now()) 
     40decodeAlarms.sent.push({"msg_number":alarms[i]['messageNumber'],"msg_folder":alarms[i]['folderName'],"a":truncate(li_alarm,34),'id':alarms[i].id});else 
     41decodeAlarms.task.push({a:truncate(li_alarm,34),sentTime:date.getTime()/1000,id:alarms[i].id,'msg_folder':alarms[i].folderName,'msg_number':alarms[i].messageNumber});} 
     42if(decodeAlarms.task.length) 
     43alarmDeadline.load(decodeAlarms.task);if(decodeAlarms.sent.length) 
     44data.alarmDeadline={alarms:decodeAlarms.sent,title:get_lang('Follow ups'),caption:(itens.length==1)?get_lang('You have one undone message today:'):get_lang('You have %1 follow ups due for today:',decodeAlarms.sent.length),type:'alarmDeadline'};else 
     45data.alarmDeadline=false;}else 
     46data.alarmDeadline=false;} 
     47if(data.doneDeadline){alarms=DataLayer.get('followupflagged',{filter:['AND',['>','doneDeadline',startDate],['<','doneDeadline',endDate]],criteria:{deepness:1}});if(alarms.length>0){var itens=[];for(var i=0;i<alarms.length;i++){var date=Date.parseExact(alarms[i]['doneDeadline'],'yyyy-MM-dd HH:mm:ss');alarms[i]['doneDeadline']=date.toString('dd/MM HH:mm');var nameFollowupflag=alarms[i]['followupflag']['id']<7?get_lang(alarms[i]['followupflag']['name']):alarms[i]['followupflag']['name'];var li_alarm=alarms[i]['doneDeadline']+' - '+nameFollowupflag+' - '+truncate(alarms[i]['message']['headers']['subject'],15);itens.push({a:truncate(li_alarm,34),id:alarms[i].id,'msg_folder':alarms[i].folderName,'msg_number':alarms[i].messageNumber});} 
     48data.doneDeadline={alarms:itens,title:get_lang('Done'),caption:(itens.length==1)?get_lang('You have one undone message today:'):get_lang('You have %1 follow ups due for today:',itens.length),type:'doneDeadline'};}else 
     49data.doneDeadline=false;} 
     50if(data.filtersAlarms){alarms=filter_list;if(alarms.length>0){var itens=[];for(var i=0;i<alarms.length;i++){alarms[i]['udate']=new Date(alarms[i]['udate']*1000).toString('dd/MM HH:mm');var li_alarm=alarms[i]['udate']+' - '+alarms[i]['from']+' - '+alarms[i]['subject'];itens.push({'msg_number':alarms[i]['msg_number'],'msg_folder':alarms[i]['msg_folder'],a:truncate(html_entities(li_alarm),34),id:alarms[i].id});} 
     51data.filtersAlarms={alarms:itens,title:get_lang('Filter by sender'),caption:(itens.length==1)?get_lang('You have an archived message:'):get_lang('You have %1 messages archived:',itens.length),type:'filtersDeadline',captions:{singular:'You have one undone message today:',plural:"You have %1 undone messages today:"}};}else 
     52data.filtersAlarms=false;} 
     53for(var i in data) 
     54if(data[i]!=false) 
     55showAlarmsModal(data[i]);$('.gray').find('.content-alarm').hide();$('.gray').find('.header-alarm [name="header-icon"]').removeClass('minimize-alarm').addClass('maximize-alarm');if($('.gray').length>0){if($('.gray').hasClass('filtersDeadline')){$('.filtersDeadline').find('.content-alarm').show();$('.filtersDeadline .header-alarm [name="header-icon"]').removeClass('maximize-alarm').addClass('minimize-alarm');}else if($('.gray').hasClass('alarmDeadline')){$('.alarmDeadline').find('.content-alarm').show();$('.alarmDeadline .header-alarm [name="header-icon"]').removeClass('maximize-alarm').addClass('minimize-alarm');}else if($('.gray').hasClass('doneDeadline')){$('.doneDeadline').find('.content-alarm').show();$('.doneDeadline .header-alarm [name="header-icon"]').removeClass('maximize-alarm').addClass('minimize-alarm');}}} 
     56function showAlarmsModal(alarm){var ok_function=function(event,type,type_cookie){if($(event.target).parents('.'+type).find('[name="stopAlert"]').is(':checked')){$.cookie(type_cookie,(new Date).toString("dd/MM/yyyy"),{expires:1});}} 
     57var dialogText=DataLayer.render("../prototype/modules/mail/templates/followupflag_alarm_list.ejs",alarm);var titulo='<div class="header-alarm"><span class="img_title"></span><span class="title-alarm"><strong>'+alarm.title+'</strong></span><span name="header-icon" class="maximize-alarm"></span></div>';$("#freeow").freeow(titulo,dialogText,{classes:["gray",alarm.type],autoHide:false,startStyle:null,onClick:function(event){var type='';var type_cookie='';if($(this).hasClass('alarmDeadline')){type='alarmDeadline';type_cookie='fadeAlarm';}else if($(this).hasClass('doneDeadline')){type='doneDeadline';type_cookie='fadeCompleted';}else if($(this).hasClass('filtersDeadline')){type='filtersDeadline';type_cookie='fadeFilterAlarm';} 
     58if($(event.target).hasClass('stop-alert-alarm')){return;} 
     59if($(event.target).hasClass('minimize-alarm')){$('.'+type).find('.content-alarm').hide();$(event.target).removeClass('minimize-alarm').addClass('maximize-alarm');return;} 
     60if($(event.target).hasClass('maximize-alarm')){$('.'+type).find('.content-alarm').show();$(event.target).removeClass('maximize-alarm').addClass('minimize-alarm');return;} 
     61if($((!!$.browser.safari)?event.target.parentElement:event.target).hasClass('confirm-alarm')){ok_function(event,type,type_cookie);$('.'+type).remove();return;} 
     62return false;}});$('.gray .background .content p').remove();$('.gray .icon').remove();$('.gray .close').remove();$('div.gray.alarmDeadline .button.delete').button({text:false,icons:{primary:'ui-icon-close'}}) 
     63$('.content-alarm button').button();} 
     64function cancelAlarm(element,idAlarm,messageNumber,folderName){$(element).parents('li').remove();var view='div.gray.alarmDeadline';var length=$(view).find('ul.message-list li').length;if(length>0){var msg='';if(length==1) 
     65msg=get_lang('You have a follow up due for today:');else 
     66msg=get_lang('You have %1 follow ups due for today:',length);$(view).find('span.subtitle-alarm strong').html(msg);}else 
     67$(view).remove();DataLayer.put('followupflagged',{id:idAlarm,isSent:'1',folderName:folderName,messageNumber:messageNumber,uid:User.me.uid});DataLayer.commit();} 
     68alarmDeadline={load:function(alarm){var currentDate=new Date().toString("dd/MM/yyyy") 
     69if($.cookie("fadeAlarm")!=currentDate) 
     70for(var i=0;i<alarm.length;i++) 
     71this.addAlarm(alarm[i]);},addAlarm:function(alarm){DataLayer.task(parseInt(alarm['sentTime']),function(timestamp){var view='div.gray.alarmDeadline';if(!$(view+' li.message-item.'+alarm.id).length){var currentDate=new Date().toString("dd/MM/yyyy") 
     72if($.cookie("fadeAlarm")!=currentDate) 
     73if($('div.gray.alarmDeadline').length){$(view).find('ul.message-list').append(DataLayer.render("../prototype/modules/mail/templates/followupflag_alarmDeadline_add_item_list.ejs",alarm)) 
     74var length=$(view).find('ul.message-list li').length;var msg='';if(length==1) 
     75msg=get_lang('You have a follow up due for today:');else 
     76msg=get_lang('You have %1 follow ups due for today:',length);$(view).find('span.subtitle-alarm strong').html(msg);$(view+' .button.delete').button({text:false,icons:{primary:'ui-icon-close'}});}else{var item={alarms:[alarm],title:get_lang('Follow ups'),caption:get_lang('You have one undone message today:'),type:'alarmDeadline'};showAlarmsModal(item);}}});}} 
     77$('#main_table').ready(function(){handlerMessageFilter=function(data){alarmFollowupflagged(null,data);} 
     78cExecute("$this.imap_functions.getFlaggedAlertMessages&folders="+fromRules,handlerMessageFilter);}); 
  • trunk/prototype/modules/mail/templates/followupflag_configure.ejs

    r6996 r7543  
    114114                                <label class="flag-label"><%= get_lang("Color")%>: </label> 
    115115                                <input type="text" name="backgroundColor" class="colorwell background-color" value="<%=(followupflagged.backgroundColor) ? followupflagged.backgroundColor : '#00820F' %>" readonly="readonly" /> 
    116                                 <div class="flag-edit flag-color-preview" style="background: <%=(followupflagged.backgroundColor) ? followupflagged.backgroundColor : '#00820F' %>"> 
    117                                         <img src="../prototype/modules/mail/img/flagEditor.png"> 
     116                                <div class="flag-edit flag-color-preview" style="background: <%=(followupflagged.backgroundColor) ? followupflagged.backgroundColor : '#00820F' %> background-image:url(../prototype/modules/mail/img/mail-sprites.png);background-position: 0 -864px;"> 
    118117                                </div> 
    119118                        </div> 
Note: See TracChangeset for help on using the changeset viewer.