Changeset 5992


Ignore:
Timestamp:
04/23/12 11:14:57 (12 years ago)
Author:
gustavo
Message:

Ticket #2611 - Refatorar interface de criação de nova mensagem

Location:
trunk/expressoMail1_2/js
Files:
2 edited

Legend:

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

    r5984 r5992  
    35793579        //Botão TextoRico/TextoSimples 
    35803580        content.find(".new-msg-head-right-buttons").find(".button").button().filter(".rich-button").click(function(){ 
    3581                 RichTextEditor.setPlain(check_input(content.find('[name="textplain_rt_checkbox"]')), ID); 
     3581                //RichTextEditor.loadEditor2(ID); 
     3582                RichTextEditor.setPlain(!(check_input(content.find('[name="textplain_rt_checkbox"]'))), ID); 
    35823583                change_text($(this).find(".ui-button-text"), get_lang("Rich Text"), get_lang("Simple Text")); 
    35833584        }) 
  • trunk/expressoMail1_2/js/main.js

    r5976 r5992  
    18451845        txtarea.css("overflowY","auto"); 
    18461846        txtarea.css("height",height); 
    1847         //Insere o conteúdo da mensagem e a assinatura no editor de texto simples 
    1848         if (preferences.plain_text_editor == 1){ 
    1849                 Element('textplain_rt_checkbox_'+new_border_ID).checked = true; 
    1850                 if (txtarea != null){ 
    1851                         if (data.body != undefined) 
    1852                                 txtarea.val(data.body.replace( new RegExp('<pre>((.\n*)*)</pre>'),'$1')); 
    1853                         if (preferences.use_signature == "1") 
    1854                                 txtarea.val(txtarea.val + '\n' + signature);      
    1855                 } 
    1856         }  
    1857         Element("border_id_" + new_border_ID).title = title; 
     1847        $("#border_id_" + new_border_ID).attr("title", title); 
    18581848        set_border_caption("border_id_" + new_border_ID, title); 
    18591849        resizeWindow(); 
    1860         //save_msg(new_border_ID); 
    18611850        return new_border_ID; //Preciso retornar o ID da nova mensagem. 
    18621851} 
Note: See TracChangeset for help on using the changeset viewer.