Changeset 1610


Ignore:
Timestamp:
11/09/09 18:18:52 (9 years ago)
Author:
rafaelraymundo
Message:

Ticket #718 - Preferência: número mínimo de caracteres na pesquisa de contatos.

Location:
trunk/expressoMail1_2
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/hook_settings.inc.php

    r1608 r1610  
    165165 
    166166create_select_box('What is the maximum number of results in an e-mail search?','search_result_number',$default,''); 
     167 
     168$default =  array( 
     169    '1' => lang('unlimited'), 
     170    '2'     => '2', 
     171    '3'     => '3', 
     172    '4'     => '4', 
     173    '5'     => '5' 
     174); 
     175 
     176create_select_box('What is the minimum number of characters in searching contacts?','search_characters_number',$default,'what is the minimum number of characters in searching contacts'); 
    167177 
    168178create_select_box('What is the height of the lines in the list of messages?','line_height',$default,''); 
  • trunk/expressoMail1_2/index.php

    r1608 r1610  
    7171    $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_signature_digital'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature_digital'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature_digital'] : "0"; 
    7272    $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['search_result_number'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['search_result_number'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['search_result_number'] : "50"; 
     73    $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['search_characters_number'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['search_characters_number'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['search_characters_number'] : "4"; 
    7374    $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['num_max_certs_to_cipher'] = $GLOBALS['phpgw_info']['server']['num_max_certs_to_cipher'] ?  $GLOBALS['phpgw_info']['server']['num_max_certs_to_cipher'] : "10"; 
    7475    $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_signature_cripto'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature_cripto'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature_cripto'] : "0"; 
  • trunk/expressoMail1_2/js/QuickCatalogSearch.js

    r810 r1610  
    451451        emQuickCatalogSearch.prototype.searchCatalogList = function (itemSearch){ 
    452452 
    453                 if(itemSearch && Element('search_for').value.length < 4){ 
    454                         alert(get_lang('your search argument must be longer than 4 characters.')); 
     453                if(itemSearch && Element('search_for').value.length < preferences.search_characters_number){ 
     454                        alert(get_lang('Your search argument must be longer than %1 characters.', preferences.search_characters_number)); 
    455455                        Element('search_for').focus(); 
    456456                        return false; 
  • trunk/expressoMail1_2/js/common_functions.js

    r1595 r1610  
    530530                var search_for = emailList; 
    531531         
    532         if (search_for.length < 4){ 
    533                 alert(get_lang('Your search argument must be longer than 4 characters.')); 
    534                 return false; 
     532        if (search_for.length < preferences.search_characters_number){ 
     533            alert(get_lang('Your search argument must be longer than %1 characters.', preferences.search_characters_number)); 
     534            return false; 
    535535        } 
    536536         
  • trunk/expressoMail1_2/setup/phpgw_en.lang

    r1609 r1610  
    197197What is the maximum number of messages per page?        expressoMail1_2 en      What is the maximum number of messages per page? 
    198198What is the maximum number of results in an e-mail search?      expressoMail1_2 en      What is the maximum number of results in an e-mail search? 
     199What is the minimum number of characters in searching contacts? expressoMail1_2 en      What is the minimum number of characters in searching contacts? 
    199200Max size        expressoMail1_2 en      Max size 
    200201Medium  expressoMail1_2 en      Medium 
Note: See TracChangeset for help on using the changeset viewer.