Ignore:
Timestamp:
09/21/12 12:14:32 (12 years ago)
Author:
fernando
Message:

Ticket #3088 - Melhoria no arquivamento local do Expresso - desativar serviço no ExpressoMail?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.0-expresso1/prototype/modules/mail/js/foldertree.js

    r7263 r7270  
    9393if(preferences.use_local_messages != 0){ 
    9494 
    95     if(expresso_mail_archive.folders){ //MailArchive 
     95    if(expresso_mail_archive.folders && !expresso_offline && expresso_mail_archive.enabled == true) { //MailArchive 
    9696        //pega pastas locais do mailarchiver e insere no array de pastas 
    9797            expresso_mail_archive.getFoldersList("home"); 
     
    163163            animated: "fast" 
    164164    }).find(".folder").unbind("click").click(function(event){ 
     165 
     166        if ($(this).next().hasClass("local-connect")) { 
     167            return; 
     168        } 
     169 
     170        if ($(this).hasClass("local-folder")) { 
     171            return; 
     172        } 
    165173         
    166174        // MUDANÇA DE PASTAS! 
     
    347355        function(){ 
    348356            //CASO A LI NÃO TENHA UM eventNU FLUTUANTE AINDA, O eventNU É ADICIONADO! 
    349             if(!$(this).children(":last").hasClass("float-menu") && !$(this).children(":last").hasClass("new_folder")){ 
     357            if(!$(this).children(":last").hasClass("float-menu") && !$(this).children(":last").hasClass("new_folder") && !($(this).next().hasClass("local-connect"))){ /*se houver a classe local-connect, não adiciona o botão de conectar*/ 
    350358                var folder_ = $(this); 
    351359                var folder_name; 
Note: See TracChangeset for help on using the changeset viewer.