Changeset 6715 for branches/2.4/expressoMail1_2/js/draw_api.js
- Timestamp:
- 07/05/12 11:49:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/expressoMail1_2/js/draw_api.js
r6655 r6715 3670 3670 //Botão TextoRico/TextoSimples 3671 3671 content.find(".new-msg-head-right-buttons").find(".button").button().filter(".rich-button").click(function(){ 3672 //RichTextEditor.loadEditor2(ID); 3673 RichTextEditor.setPlain(check_input(content.find('[name="textplain_rt_checkbox"]')), ID); 3674 change_text($(this).find(".ui-button-text"), get_lang("Rich Text"), get_lang("Simple Text")); 3672 /*Se o texto do botão for "Texto simples" exibirá a mensagem antes de alterar para texto simples*/ 3673 if($(".rich-button").find("span").text() == get_lang("Simple Text")){ 3674 $.Zebra_Dialog(get_lang("Convert this message into plain text can make parts of it are removed. Continue?"), { 3675 'type': 'warning', 3676 'overlay_opacity': '0.5', 3677 'buttons': ['OK','Cancelar'], 3678 'width' : 380, 3679 'onClose': function(clicked) { 3680 if(clicked == 'OK'){ 3681 RichTextEditor.setPlain(check_input(content.find('[name="textplain_rt_checkbox"]')), ID); 3682 $(".rich-button").find("span").text(get_lang("Rich Text")); 3683 } 3684 } 3685 }) 3686 } 3687 /*Se o texto do botão for "Texto rico" simplesmente altera para texto rico*/ 3688 else{ 3689 RichTextEditor.setPlain(check_input(content.find('[name="textplain_rt_checkbox"]')), ID); 3690 $(".rich-button").find("span").text(get_lang("Simple Text")); 3691 } 3675 3692 }) 3676 3693
Note: See TracChangeset
for help on using the changeset viewer.