Ignore:
Timestamp:
08/22/11 10:00:54 (13 years ago)
Author:
fernando-alberto
Message:

Ticket #1269 - Mergiando revisoes do branch22 de rev4876 ate rev4971

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/expressoMail1_2/MailArchiver/2.2/expressoMail1_2/js/abas.js

    r4202 r4972  
    3434        if (spanD) 
    3535                spanD.style.display = (openTab.type[ID] == 0 ? '' : 'none'); 
    36  
     36         
     37        if( document.getElementById('divScrollMain_0') != null ) 
     38        { 
     39                var _RSS = document.getElementById('divScrollMain_0'); 
     40        }        
     41         
    3742        var footer_menu = Element("footer_menu");        
    3843        if (footer_menu) { 
    39                 footer_menu.style.display = (openTab.type[ID] != 4 ? '' : 'none'); 
     44 
     45                var attrRSS = _RSS.getAttribute("rss"); 
     46                 
     47                if( attrRSS == "rss" ) 
     48                { 
     49                        footer_menu.style.display = "none";      
     50                } 
     51                else 
     52                { 
     53                        footer_menu.style.display = (openTab.type[ID] != 4 ? '' : 'none'); 
     54                } 
     55                                 
     56                var options_search = Element('span_options'); 
     57                if (options_search){ 
     58                        var spans_search = options_search.getElementsByTagName("span"); 
     59                        var span_search; 
     60                        for (i = 0; i < spans_search.length; i++){ 
     61                                span_search = spans_search[i]; 
     62                                span_search.className == 'message_options_export'?span_search.style.display = (openTab.type[ID] != 1 ? '' : 'none'):''; 
     63                                span_search.className == 'message_options_import'?span_search.style.display = (openTab.type[ID] == 0 ? '' : 'none'):''; 
     64                                (span_search.title  == get_lang("Archive") || span_search.title == get_lang("Unarchive"))?span_search.style.display = (openTab.type[ID] == 0 ? '' : 'none'):''; 
     65                        } 
     66                } 
     67 
    4068        } 
    4169 
     
    122150} 
    123151 
    124 function create_border(borderTitle, id_value) 
    125 { 
     152function create_border(borderTitle, id_value, border_type) 
     153{ 
     154        if (borderTitle == get_lang("Server Results")) 
     155                id_value = "search_" + parseInt(BordersArray.length-1) + 1; 
     156 
    126157        borderTitle = ( ( borderTitle && borderTitle.constructor == String && borderTitle.length > 0 ) ? borderTitle : '&nbsp;' ); 
    127158 
     
    195226 
    196227        Element("exmail_main_body").insertBefore(div,Element("footer_menu")); 
     228         
     229        if(border_type) 
     230                openTab.type[ID] = border_type; 
    197231        alternate_border(ID); 
    198232        return ID; 
     
    318352                } 
    319353        if(j == 1) 
    320                 Element("footer_menu").style.display = ''; 
     354        {        
     355                if( document.getElementById('divScrollMain_0') != null ) 
     356                { 
     357                        var _RSS = document.getElementById('divScrollMain_0'); 
     358                }        
     359                 
     360                var attrRSS = _RSS.getAttribute("rss"); 
     361                 
     362                if( attrRSS == "rss" ) 
     363                { 
     364                        Element("footer_menu").style.display = 'none';                   
     365                } 
     366                else 
     367                { 
     368                        Element("footer_menu").style.display = ''; 
     369                }                
     370        } 
     371         
    321372        BordersArray = new_BordersArray; 
    322373 
Note: See TracChangeset for help on using the changeset viewer.