Ignore:
Timestamp:
05/27/09 18:06:15 (15 years ago)
Author:
rafaelraymundo
Message:

Ticket #529 - Numero minimo de caracteres da busca e mais uma opcao para busca por participantes configuravel.

Location:
trunk/calendar/templates/celepar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/templates/celepar/config.tpl

    r42 r928  
    5757    </td> 
    5858   </tr> 
     59    
     60   <tr bgcolor="{row_on}"> 
     61   <td>{lang_Min_number_characters}</td> 
     62   <td> 
     63      <input type="text" value="{value_min_num_characters}" name="newsettings[min_num_characters]" size=2 maxlength=1/> 
     64   </td> 
     65   </tr> 
    5966<!-- END body --> 
    6067 
     
    6976      <input type="submit" name="submit" value="{lang_submit}"> 
    7077      <input type="submit" name="cancel" value="{lang_cancel}"> 
    71     </td> 
     78     </td> 
    7279  </tr> 
    7380</table> 
  • trunk/calendar/templates/celepar/js/edit_exmail.js

    r927 r928  
    2121  
    2222function get_available_users(filter) 
     23//function get_available_users(path,context,type) 
    2324{ 
    2425        var handler_get_available_users = function(data) 
     
    5354                } 
    5455        }        
    55  
    56         //document.getElementById('combo_org').value = context; 
    57         cExecute ('expressoMail1_2'+'.ldap_functions.search_users&filter='+filter+'&type=search', handler_get_available_users); 
    58 } 
    59  
    60 function optionFinderTimeout(obj){ 
     56                context = document.getElementById('combo_org').value; 
     57                cExecute ('expressoMail1_2'+'.ldap_functions.search_users&filter='+filter+'&context='+context+'&type=search', handler_get_available_users); 
     58                //cExecute (path+'.ldap_functions.get_available_users&context='+context+'&type='+type, handler_get_available_users); 
     59} 
     60 
     61function optionFinderTimeout(obj,numMin){ 
    6162                var oWait = document.getElementById("cal_span_searching"); 
    62                 if (obj.value.length >= 4){ 
     63                if (obj.value.length >= numMin){ 
    6364                        clearTimeout(finderTimeout);     
    6465                        oWait.innerHTML = 'Buscando...'; 
    65                         var finderTimeout = setTimeout("optionFinder('"+obj.id+"')",500); 
     66                        var finderTimeout = setTimeout("optionFinder('"+obj.id+"','"+numMin+"')",500); 
    6667                }else { 
    67                         oWait.innerHTML = 'Mínimo de 4 letras para pesquisa'; 
     68                        oWait.innerHTML = 'Mínimo de '+numMin+' letras para pesquisa'; 
    6869                        var select_available_users_tmp = document.getElementById('user_list_in'); 
    6970                        for(var i = 0;i < select_available_users_tmp.options.length; i++) 
     
    7273} 
    7374         
    74 function optionFinder(id){ 
     75function optionFinder(id,numMin){ 
    7576         
    7677                var oWait = document.getElementById("cal_span_searching"); 
    7778                var oText = document.getElementById(id); 
    78                  
    7979                         
    80                 if (oText.value.length < 4) { 
     80                if (oText.value.length < numMin) { 
    8181                                oWait.innerHTML = ''; 
    8282                                var select_available_users_tmp = document.getElementById('user_list_in'); 
     
    8585                } 
    8686                 
    87                 if (oText.value.length >= 4) { 
     87                if (oText.value.length >= numMin) { 
    8888                        get_available_users(oText.value); 
    8989                 
Note: See TracChangeset for help on using the changeset viewer.