Changeset 3236


Ignore:
Timestamp:
09/14/10 10:25:24 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #1262 - Imagem quebrada na previsualização de msg no arquivamento local.

File:
1 edited

Legend:

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

    r3018 r3236  
    442442                } 
    443443                 
    444                 sql = 'select mail.rowid as rowid,mail.header as header,mail.size as size,mail.timestamp as timestamp,mail.unseen as unseen,mail.body as body,case when lower(mail.ffrom) like ? then ltrim(ltrim(substr(UPPER(ffrom),21,length(ffrom)),\':\'),\'"\') else ltrim(ltrim(substr(UPPER(fto),7,length(fto)),\':\'),\'"\') end as order_from,mail.subject from mail inner join folder on mail.id_folder=folder.rowid where mail.uid_usuario=? and folder.folder=? order by ' 
     444                sql = 'select mail.rowid as rowid,mail.header as header,mail.size as size,mail.timestamp as timestamp,mail.unseen as unseen,substr(mail.body,1,300) as body,case when lower(mail.ffrom) like ? then ltrim(ltrim(substr(UPPER(ffrom),21,length(ffrom)),\':\'),\'"\') else ltrim(ltrim(substr(UPPER(fto),7,length(fto)),\':\'),\'"\') end as order_from,mail.subject from mail inner join folder on mail.id_folder=folder.rowid where mail.uid_usuario=? and folder.folder=? order by ' 
    445445                 
    446446                if(sort == 'SORTFROM') { 
     
    488488                         
    489489                        //declaracao do array() para receber o body de cada mensagem encontrada na busca sql realizada; 
    490                         msg_body=this.strip_tags(msg_body); 
    491                         msg_body=msg_body.replace(/\ /ig," "); 
     490 
    492491                        retorno[cont]['msg_sample'] = new Array(); 
    493492 
     
    498497                        else 
    499498                        { 
    500                                 retorno[cont]['msg_sample']['body'] = " - " + msg_body.substr(2,300); 
     499                                msg_body += ">"; 
     500                                msg_body=this.strip_tags(msg_body); 
     501                                msg_body=msg_body.replace(/\ /ig," "); 
     502                                retorno[cont]['msg_sample']['body'] = " - " + msg_body.substr(2,msg_body.length-1); 
    501503                        } 
    502504 
Note: See TracChangeset for help on using the changeset viewer.