Changeset 3581


Ignore:
Timestamp:
12/13/10 10:37:03 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1431 - inclui preferência da busca rápida (contatos ou email).

Location:
branches/2.2/expressoMail1_2
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/inc/hook_settings.inc.php

    r3493 r3581  
    218218$default = array(sprintf("%s", array_search('America/Sao_Paulo', $zones)) => 'America/Sao_Paulo'); 
    219219create_select_box('What is your timezone?', 'timezone', $zones, 'The Timezone you\'re in.', $default); 
     220 
     221$default =  array( 
     222    '1' => lang('contacts'), 
     223    '2' => lang('email') 
     224); 
     225 
     226create_select_box('Where should the quick search be performed by default?','quick_search_default',$default,'It is where the keyword should be searched when the user executes a quick search.'); 
    220227 
    221228$default = array( 
  • branches/2.2/expressoMail1_2/index.php

    r3493 r3581  
    9494        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['auto_create_local'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['auto_create_local'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['auto_create_local'] : "0"; 
    9595        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_SpellChecker'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_SpellChecker'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_SpellChecker'] : "0"; 
     96         
     97        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['quick_search_default'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['quick_search_default'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['quick_search_default'] : 1; 
    9698 
    9799        //SpellChecker 
     
    124126        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder'] = $save_in_folder; 
    125127        // End Fix. 
    126          
     128 
    127129        $template->set_file(Array('expressoMail' => 'index.tpl')); 
    128130        $template->set_block('expressoMail','list'); 
  • branches/2.2/expressoMail1_2/js/common_functions.js

    r3387 r3581  
    502502        return (urlParts[1].length > 4 &&  validateDomain(urlParts[2])); 
    503503} 
     504 
     505function performQuickSearch(keyword){ 
     506        if (preferences.quick_search_default=='1') 
     507                emQuickSearch(keyword, 'null', 'null'); 
     508        else 
     509                search_emails(keyword); 
     510} 
     511 
    504512function emQuickSearch(emailList, field, ID){ 
    505513        var quickSearchKeyBegin; 
  • branches/2.2/expressoMail1_2/setup/phpgw_en.lang

    r3493 r3581  
    401401What is the minimum number of characters in searching contacts? expressoMail1_2 en      What is the minimum number of characters in searching contacts? 
    402402What is your timezone?  expressoMail1_2 en      What is your timezone? 
     403Where should the quick search be performed by default?  expressoMail1_2 pt-br   Where should the quick search be performed by default? 
     404It is where the keyword should be searched when the user executes a quick search.       expressoMail1_2 pt-br   It is where the keyword should be searched when the user executes a quick search. 
    403405Who     expressoMail1_2 en      Who 
    404406With all        expressoMail1_2 en      With all 
  • branches/2.2/expressoMail1_2/setup/phpgw_pt-br.lang

    r3533 r3581  
    561561When user send an email with image in body message, it changes the size expressoMail1_2 pt-br   Quando o usuário envia um e-mail com a imagem no corpo da mensagem, ela muda o tamanho 
    562562When you are away from computer it saves automatically the message you are writing      expressoMail1_2 pt-br   Quando você estiver longe do computador. Isto salva automaticamente a mensagem que está a escrever 
     563Where should the quick search be performed by default?  expressoMail1_2 pt-br   Aonde a pesquisa rápida deve atuar por padrão? 
     564It is where the keyword should be searched when the user executes a quick search.       expressoMail1_2 pt-br   Aonde a busca deve ser realizada quando o usuário realizar uma pesquisa rápida. 
    563565Who     expressoMail1_2 pt-br   Quem 
    564566With all        expressoMail1_2 pt-br   com todas 
  • branches/2.2/expressoMail1_2/templates/classic/index.tpl

    r3018 r3581  
    4343                                        { 
    4444                                                if( e.keyCode == 13 ) 
    45                                                         emQuickSearch(Element('em_message_search').value, 'null', 'null'); 
     45                                                        performQuickSearch(Element('em_message_search').value); 
    4646                                        } 
    4747 
  • branches/2.2/expressoMail1_2/templates/default/index.tpl

    r3018 r3581  
    7070                { 
    7171                        if( e.keyCode == 13 ) 
    72                                 emQuickSearch(Element('em_message_search').value, 'null', 'null'); 
     72                                performQuickSearch(Element('em_message_search').value); 
    7373                } 
    7474                 
Note: See TracChangeset for help on using the changeset viewer.