Ignore:
Timestamp:
07/20/10 11:45:03 (14 years ago)
Author:
amuller
Message:

Ticket #1145 - Divide os js em dois módulos e faz carregamendo sob demanda

Location:
trunk/expressoMail1_2/js/base
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/base/common_functions.js

    r2930 r3073  
    402402                        { 
    403403                                expresso.connector.loadScript("jscode/QuickCatalogSearch"); 
     404                                if (typeof(QuickCatalogSearch) == 'undefined'){ 
     405                                        setTimeout('emQuickSearch("'+emailList+'", "'+field+'", "'+ID+'")',500); 
     406                                        return false; 
     407                                } 
    404408                                QuickCatalogSearch.showList(data, quickSearchKeyBegin, quickSearchKeyEnd); 
    405409                        } 
     
    407411                        { 
    408412                                expresso.connector.loadScript("jscode/QuickSearchUser"); 
     413                                if (typeof(QuickSearchUser) == 'undefined'){ 
     414                                        setTimeout('emQuickSearch("'+emailList+'", "'+field+'", "'+ID+'")',500); 
     415                                        return false; 
     416                                } 
    409417                                QuickSearchUser.showList(data); 
    410418                        } 
     
    445453function folderbox(){ 
    446454        expresso.connector.loadScript("jscode/TreeS"); 
     455        if (typeof(ttree) == 'undefined'){  
     456                setTimeout('folderbox()',500);  
     457                return false;  
     458        }  
    447459        ttree.make_Window(); 
    448460} 
     
    451463        expresso.connector.loadScript("jscode/filter"); 
    452464        expresso.connector.loadScript("jscode/filters"); 
     465        if (typeof(filters) == 'undefined')  
     466        {  
     467                setTimeout('filterbox()',500);  
     468                return false;  
     469        }  
    453470        filters.Forms(); 
    454471} 
     
    463480                } 
    464481                expresso.connector.loadScript("jscode/sharemailbox"); 
     482                if (typeof(sharemailbox) == 'undefined')  
     483                {  
     484                        setTimeout('sharebox()',500);  
     485                        return false;  
     486                }  
    465487                sharemailbox.makeWindow(options); 
    466488        }; 
     
    473495 
    474496function search_emails(value){ 
     497        expresso.connector.loadScript("TreeS"); 
    475498        expresso.connector.loadScript("jscode/search"); 
     499        if (typeof(EsearchE) == 'undefined' || typeof(ttree) == 'undefined'){  
     500                setTimeout('search_emails("'+value+'")',500);  
     501                return false;  
     502        }  
    476503        EsearchE.showForms(value); 
    477504} 
Note: See TracChangeset for help on using the changeset viewer.