Changeset 6698 for trunk/expressoMail1_2/js/draw_api.js
- Timestamp:
- 07/03/12 08:47:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/draw_api.js
r6678 r6698 4236 4236 //Botão TextoRico/TextoSimples 4237 4237 content.find(".new-msg-head-right-buttons").find(".button").button().filter(".rich-button").click(function(){ 4238 //RichTextEditor.loadEditor2(ID); 4239 RichTextEditor.setPlain(check_input(content.find('[name="textplain_rt_checkbox"]')), ID); 4240 change_text($(this).find(".ui-button-text"), get_lang("Rich Text"), get_lang("Simple Text")); 4238 /*Se o texto do botão for "Texto simples" exibirá a mensagem antes de alterar para texto simples*/ 4239 if($(".rich-button").find("span").text() == get_lang("Simple Text")){ 4240 $.Zebra_Dialog(get_lang("Convert this message into plain text can make parts of it are removed. Continue?"), { 4241 'type': 'warning', 4242 'overlay_opacity': '0.5', 4243 'buttons': ['OK','Cancelar'], 4244 'width' : 380, 4245 'onClose': function(clicked) { 4246 if(clicked == 'OK'){ 4247 RichTextEditor.setPlain(check_input(content.find('[name="textplain_rt_checkbox"]')), ID); 4248 $(".rich-button").find("span").text(get_lang("Rich Text")); 4249 } 4250 } 4251 }) 4252 } 4253 /*Se o texto do botão for "Texto rico" simplesmente altera para texto rico*/ 4254 else{ 4255 RichTextEditor.setPlain(check_input(content.find('[name="textplain_rt_checkbox"]')), ID); 4256 $(".rich-button").find("span").text(get_lang("Simple Text")); 4257 } 4241 4258 }) 4242 4259
Note: See TracChangeset
for help on using the changeset viewer.