Ignore:
Timestamp:
08/14/08 11:15:07 (16 years ago)
Author:
niltonneto
Message:

Ver Tickets no Trac #286 e #287.
Inclusão de template de assinatura padrão.
Assinatura também disponível em formato de texto rico.
Inclusão da biblioteca FCKEditor.

File:
1 edited

Legend:

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

    r352 r389  
    509509                data.date_hour = Element('date_hour_' + border_ID).value; 
    510510        } 
    511          
     511        var signature = preferences.type_signature == 'html' ? preferences.signature : preferences.signature.replace(/\n/g, "<br>"); 
    512512        switch(type){ 
    513513                case "reply_without_history":                    
     
    519519                        // Insert the signature automaticaly at message body if use_signature preference is set 
    520520                        if (preferences.use_signature == "1"){  
    521                                 body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>"); 
     521                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + signature + "</body></html>"); 
    522522                        } 
    523523                        else{  
     
    548548                        // Insert the signature automaticaly at message body if use_signature preference is set 
    549549                        if (preferences.use_signature == "1") { 
    550                                 body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>" + block_quoted_body + "</body></html>"); 
     550                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + signature + "</body></html>" + block_quoted_body + "</body></html>"); 
    551551                        } 
    552552                        else { 
     
    593593                        // Insert the signature automaticaly at message body if use_signature preference is set 
    594594                        if (preferences.use_signature == "1") { 
    595                                 body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>"); 
     595                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + signature + "</body></html>"); 
    596596                        } 
    597597                        else { 
     
    638638                        // Insert the signature automaticaly at message body if use_signature preference is set 
    639639                        if (preferences.use_signature == "1") { 
    640                                 body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>" + block_quoted_body + "</body></html>"); 
     640                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + signature + "</body></html>" + block_quoted_body + "</body></html>"); 
    641641                        } 
    642642                        else { 
     
    686686                        // Insert the signature automaticaly at message body if use_signature preference is set 
    687687                        if (preferences.use_signature == "1") { 
    688                                 body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>" + make_forward_body(data.body, data.to, data.date, data.subject, data.to_all, data.cc) + "</body></html>"); 
     688                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + signature + "</body></html>" + make_forward_body(data.body, data.to, data.date, data.subject, data.to_all, data.cc) + "</body></html>"); 
    689689                        } 
    690690                        else { 
     
    719719                        // Insert the signature automaticaly at message body if use_signature preference is set 
    720720                        if (preferences.use_signature == "1") { 
    721                                 body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + preferences.signature.replace(/\n/g, "<br>") + "</body></html>"); 
     721                                body.contentWindow.document.write("<html><body bgcolor='#FFFFFF'>" + "<br>" + signature + "</body></html>"); 
    722722                        } 
    723723                        else { 
Note: See TracChangeset for help on using the changeset viewer.