Ignore:
Timestamp:
12/17/11 00:36:21 (12 years ago)
Author:
acoutinho
Message:

Ticket #2393 - Busca avancada nao funciona quando pesquisado no arquivamento local

File:
1 edited

Legend:

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

    r5264 r5267  
    448448                        if ( local_folders.length > 0 ){ 
    449449                                var currentSearch = document.getElementsByName(currentTab); 
    450                                 gears = expresso_local_messages.search( local_folders, "##ALL <=>"+currentSearch[0].value +"##"); 
     450                                if(currentSearch[0].value != ''){ 
     451                                        gears = expresso_local_messages.search( local_folders, "##ALL <=>"+currentSearch[0].value +"##"); 
     452                                }else{ 
     453                                        if(openTab.condition[currentTab]){ 
     454                                                var condit = openTab.condition[currentTab][0].split(','); 
     455                                                var filter = condit[0].split('##'); 
     456                                                gears = expresso_local_messages.search( local_folders, '##'+filter[1]+'##'); 
     457                                                 
     458                                        } 
     459                                 
     460                                } 
    451461                        } 
    452462 
Note: See TracChangeset for help on using the changeset viewer.