Changeset 4616 for branches


Ignore:
Timestamp:
06/16/11 14:51:49 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #1808 - Corrigido para que o tipo da busca seja configurada na administracao do expresso

Location:
branches/2.2/expressoMail1_2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/js/sharemailbox.js

    r4614 r4616  
    55                this.alert = false; 
    66                this.context = ""; 
     7                this.finderTimeout = ''; 
    78        } 
    89         
     
    324325        } 
    325326         
    326         var finderTimeout = ''; 
    327  
    328327        cShareMailbox.prototype.optionFinderTimeout = function(Obj, Event ) 
    329328        { 
     
    349348                            var cn      = _input.value; 
    350349                             
    351                             finderTimeout = setTimeout(function() 
    352                             { 
    353                                 sharemailbox.get_available_users2( context, cn ); 
    354                             }, 500); 
    355                              
     350                            sharemailbox.get_available_users2( context, cn ); 
     351 
    356352                            cleanLabel(obj); 
    357353                        } 
     
    374370                                oWait.innerHTML = " ( Buscando aguarde .... )"; 
    375371                                 
    376                                 if( finderTimeout ) 
    377                                         clearTimeout(finderTimeout); 
    378  
    379                                 finderTimeout = setTimeout(function(){ getUsers( _inputSearch, oWait); }, 1000); 
     372                                if( this.finderTimeout ) 
     373                                        clearTimeout(this.finderTimeout); 
     374 
     375                                this.finderTimeout = setTimeout(function(){ getUsers( _inputSearch, oWait); }, 1000); 
    380376                        }        
    381377                } 
    382378                else 
    383379                { 
    384                     clearTimeout(finderTimeout);         
     380                    if( this.finderTimeout ) 
     381                        clearTimeout(this.finderTimeout); 
     382 
    385383                    oWait.innerHTML = get_lang('Searching')+"..."; 
    386                     var finderTimeout = setTimeout("sharemailbox.optionFinder('"+Obj.id+"')",500); 
     384                     
     385                    this.finderTimeout = setTimeout(function(){ sharemailbox.optionFinder(Obj.id); }, 1000); 
    387386                } 
    388387        } 
  • branches/2.2/expressoMail1_2/templates/default/config.tpl

    r4511 r4616  
    136136     <td> 
    137137       <select id="usersAutoSearch" name="newsettings[expressoMail_users_auto_search]"> 
     138            <option value="true" {selected_expressoMail_users_auto_search_true}>{lang_Yes}</option> 
    138139            <option value="false" {selected_expressoMail_users_auto_search_false}>{lang_No}</option> 
    139             <option value="true" {selected_expressoMail_users_auto_search_true}>{lang_Yes}</option> 
    140140       </select> 
    141141     </td> 
Note: See TracChangeset for help on using the changeset viewer.