Ticket #1485304: ie_html_signature_no_call_init.patch
| File ie_html_signature_no_call_init.patch, 2.6 kB (added by tensor1982, 4 months ago) |
|---|
-
program/js/editor.js
34 34 content_css : skin_path + "/editor_content.css", 35 35 external_image_list_url : "program/js/editor_images.js", 36 36 spellchecker_languages : (rcmail.env.spellcheck_langs ? rcmail.env.spellcheck_langs : "Dansk=da,Deutsch=de,+English=en,Espanol=es,Francais=fr,Italiano=it,Nederlands=nl,Polski=pl,Portugues=pt,Suomi=fi,Svenska=sv"), 37 rc_client: rcube_webmail_client 37 rc_client: rcube_webmail_client, 38 init_instance_callback : "rcmail_editor_callback" 38 39 }); 39 40 } 40 41 42 // react to real individual tinyMCE editor init 43 function rcmail_editor_callback(editor) 44 { 45 if (editor.editorId == 'compose-body'){ 46 var input_from = rcube_find_object('_from'); 47 if (input_from && input_from.type=='select-one') 48 rcmail.change_identity(input_from); 49 } 50 } 51 41 52 // Toggle between the HTML and Plain Text editors 42 53 43 54 function rcmail_toggle_editor(toggler) -
program/js/app.js
443 443 this.init_address_input_events(input_bcc); 444 444 445 445 // add signature according to selected identity 446 if (input_from && input_from.type=='select-one') 446 // if we have HTML editor, signature is added in callback 447 if (input_from && input_from.type=='select-one' 448 && rcube_find_object('_is_html').value != '1') 447 449 this.change_identity(input_from); 448 450 449 451 if (input_to && input_to.value=='') … … 4177 4179 this.reset(); 4178 4180 4179 4181 } // end class rcube_http_request 4180 4181 4182 // helper function to call the init method with a delay4183 function call_init(o)4184 {4185 window.setTimeout('if (window[\''+o+'\'] && window[\''+o+'\'].init) { '+o+'.init(); }',4186 bw.win ? 500 : 200);4187 }4188 -
program/include/rcube_template.php
65 65 $javascript = 'var '.JS_OBJECT_NAME.' = new rcube_webmail();'; 66 66 67 67 // don't wait for page onload. Call init at the bottom of the page (delayed) 68 $javascript_foot = "if (window.call_init)\n call_init('".JS_OBJECT_NAME."');";68 $javascript_foot = JS_OBJECT_NAME . ".init();"; 69 69 70 70 $this->add_script($javascript, 'head_top'); 71 71 $this->add_script($javascript_foot, 'foot');
