Ignore:
Timestamp:
09/05/11 15:33:41 (13 years ago)
Author:
fernando-alberto
Message:

Ticket #1269 - Mergiando revisoes do branch22 de rev4972 ate rev5034

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/expressoMail1_2/MailArchiver/2.2/expressoMail1_2/js/sharemailbox.js

    r4644 r5035  
    88        } 
    99         
    10         cShareMailbox.prototype.get_available_users = function(context) 
    11         { 
    12             if( sharedFolders_users_auto_search.toString() === "true" ) 
    13             {     
    14                 this.get_available_users2(context); 
    15             } 
     10    cShareMailbox.prototype.get_available_users = function(context) 
     11    { 
     12        if( sharedFolders_users_auto_search.toString() === "true" ) 
     13        {     
     14            this.get_available_users2(context); 
    1615        } 
     16    } 
    1717 
    1818        cShareMailbox.prototype.get_available_users2 = function() 
     
    325325        } 
    326326         
    327         cShareMailbox.prototype.optionFinderTimeout = function(Obj, Event ) 
    328         { 
    329                 var minNumChar  = sharedFolders_min_num_characters; 
    330                 var oWait       = document.getElementById("em_span_searching"); 
    331                 this.context    = document.getElementById('em_combo_org').value; 
    332                  
    333                 if( ( parseInt(minNumChar) > 0 && minNumChar.toString() != "" ) && 
    334                         sharedFolders_users_auto_search.toString() === "false" ) 
    335                 { 
     327    cShareMailbox.prototype.optionFinderTimeout = function(Obj, Event ) 
     328        { 
     329                var minNumChar  = trim(sharedFolders_min_num_characters); 
     330                minNumChar  = ( minNumChar === "" || parseInt(minNumChar) == 0 ) ? 1 : minNumChar; 
     331                 
     332                var oWait       = document.getElementById("em_span_searching"); 
     333        this.context    = document.getElementById('em_combo_org').value; 
     334 
     335        if( parseInt(minNumChar) > 0  && sharedFolders_users_auto_search.toString() === "false" ) 
     336        { 
    336337                        var key             = [8,27,37,38,39,40]; 
    337338                        var ev              = Event; 
     
    354355 
    355356                        for( var i in key ) 
    356                         { 
    357                             if( ev.keyCode == key[i]) 
    358                             {     
    359                                 return false; 
    360                             } 
    361                         } 
     357                        { 
     358                                if( ev.keyCode == key[i]) 
     359                {     
     360                                        return false; 
     361                } 
     362                        } 
    362363 
    363364                        if( _inputSearch.value.length < parseInt(minNumChar) ) 
     
    368369                        else 
    369370                        { 
    370                                 oWait.innerHTML = " ( Buscando aguarde .... )"; 
     371                                oWait.innerHTML = get_lang('Searching')+"..."; 
    371372                                 
    372373                                if( this.finderTimeout ) 
     
    375376                                this.finderTimeout = setTimeout(function(){ getUsers( _inputSearch, oWait); }, 1000); 
    376377                        }        
    377                 } 
    378                 else 
    379                 { 
    380                     if( this.finderTimeout ) 
    381                         clearTimeout(this.finderTimeout); 
    382  
    383                     oWait.innerHTML = get_lang('Searching')+"..."; 
    384                      
    385                     this.finderTimeout = setTimeout(function(){ sharemailbox.optionFinder(Obj.id); }, 1000); 
    386                 } 
     378         } 
     379         else 
     380         { 
     381            if( this.finderTimeout ) 
     382                clearTimeout(this.finderTimeout); 
     383 
     384            oWait.innerHTML = get_lang('Searching')+"..."; 
     385             
     386            this.finderTimeout = setTimeout(function(){ sharemailbox.optionFinder(Obj.id); }, 1000); 
     387         } 
    387388        } 
    388389         
Note: See TracChangeset for help on using the changeset viewer.