Changeset 8189


Ignore:
Timestamp:
07/24/13 11:44:41 (11 years ago)
Author:
angelo
Message:

Ticket #3468 - Icones de pastas invertidos no Expresso Mail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/mail/js/foldertree.js

    r8111 r8189  
    108108} 
    109109 
     110function refreshTreeview(){ 
     111    //Atualização e correção dos ícones expandir/contrair 
     112    $.each($('.treeview').find('.expandable, .collapsable').filter(':not(.lastExpandable,.lastCollapsable)'),function(i,v){ 
     113      if ( $(v).find('ul').css('display') == "block" ){ 
     114        $(v).removeClass().addClass('collapsable');  
     115        $(v).find('.hitarea:first').removeClass().addClass('hitarea collapsable-hitarea') 
     116      } 
     117    }); 
     118    //Última árvore de pastas 
     119    $.each($('.treeview').find('.lastExpandable,.lastCollapsable'),function(i,v){ 
     120      if ( $(v).find('ul').css('display') == "block" ){ 
     121        $(v).removeClass().addClass('collapsable lastCollapsable');  
     122        $(v).find('.hitarea:first').removeClass('expandable-hitarea').addClass('collapsable-hitarea'); 
     123        $(v).find('.hitarea:first').removeClass('lastExpandable-hitarea').addClass('lastCollapsable-hitarea'); 
     124      } 
     125    }); 
     126} 
     127 
    110128function draw_new_tree_folder(callback, force) 
    111129{ 
     
    286304        search_emails("UNDELETED KEYWORD \"$Followupflagged\""); 
    287305    }).end().end(); 
    288  
     306     
     307    refreshTreeview(); 
     308     
    289309    $('.upper').droppable( 
    290310    { 
Note: See TracChangeset for help on using the changeset viewer.