Ignore:
Timestamp:
11/05/09 16:22:24 (15 years ago)
Author:
eduardoalex
Message:

Ticket #709 - adição da melhoria descrita no ticket em questao

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/local_messages.js

    r1518 r1595  
    3333                 
    3434                var db_in_other_use = true; 
     35                var start_trying = new Date().getTime(); 
    3536                while (db_in_other_use) { 
    3637                        try { 
     
    3940                        }  
    4041                        catch (ex) { 
    41                                 db_in_other_use=true; 
     42                                if(new Date.getTime()-start_trying>10000) { //too much time trying, throw an exception 
     43                                        throw ex; 
     44                                } 
    4245                        } 
    4346                } 
     
    934937        } 
    935938         
    936         local_messages.prototype.get_folders_to_sync = function() { 
     939        local_messages.prototype.get_folders_to_sync = function() {//Precisa ter visibilidade ao array de linguagens. 
    937940                this.init_local_messages(); 
    938941                var rs = this.dbGears.execute("select id_folder,folder_name from folders_sync where uid_usuario="+account_id); 
     
    941944                        temp = new Array(); 
    942945                        temp[0] = rs.field(0); 
    943                         temp[1] = rs.field(1); 
     946                        if(temp[0]=='INBOX/Drafts' ||temp[0]=='INBOX/Trash' || temp[0]=='INBOX/Sent') { 
     947                                temp[1] = array_lang[rs.field(1).toLowerCase()]; 
     948                        } 
     949                        else { 
     950                                temp[1] = rs.field(1);   
     951                        } 
     952                         
    944953                        retorno.push(temp); 
    945954                        rs.next(); 
Note: See TracChangeset for help on using the changeset viewer.