Changeset 8158 for branches


Ignore:
Timestamp:
05/16/13 14:12:30 (6 years ago)
Author:
douglas
Message:

Ticket #3418 - Problema ao salvar assinatura com titulo contendo acentos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/expressoMail1_2/js/rich_text_editor.js

    r7766 r8158  
    133133            return RichTextEditor.signatures; 
    134134                 
    135         var signatures = this.fromJSON( preferences.signatures ); 
    136         var signature_types = this.fromJSON( preferences.signature_types ); 
     135        var signatures = RichTextEditor.normalizerSignature(this.fromJSON( preferences.signatures )); 
     136        var signature_types = RichTextEditor.normalizerSignature(this.fromJSON( preferences.signature_types )); 
    137137 
    138138        for( key in signatures ) 
     
    144144 
    145145} 
     146cRichTextEditor.prototype.normalizerSignature = function(values) {  
     147        var value = {};   
     148        for (key in values){  
     149                value[RichTextEditor.decode64(key)] = values[key];  
     150        }  
     151        return value; 
     152} 
    146153 
    147154cRichTextEditor.prototype.getSignatureDefault = function() { 
    148155          
    149         if(RichTextEditor.signatures === false) 
    150             RichTextEditor.signatures = RichTextEditor.getSignaturesOptions();  
     156        if(RichTextEditor.signatures === false){ 
     157            RichTextEditor.signatures = RichTextEditor.getSignaturesOptions(); 
     158            preferences.signature_default = RichTextEditor.decode64(preferences.signature_default); 
     159        }      
    151160          
    152161        if(!RichTextEditor.signatures ||   
Note: See TracChangeset for help on using the changeset viewer.