Changeset 3913 in subversion
- Timestamp:
- Aug 28, 2010 8:37:56 AM (3 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/js/app.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r3911 r3913 13 13 - Fix TinyMCE uses zh_CN when zh_TW locale is set (#1486929) 14 14 - Fix TinyMCE buttons are hidden in Opera (#1486922) 15 - Fix JS error on IE when trying to send HTML message with enabled spellchecker (#1486940) 15 16 16 17 RELEASE 0.4 -
trunk/roundcubemail/program/js/app.js
r3908 r3913 2753 2753 { 2754 2754 // check input fields 2755 var input_to = $("[name='_to']");2756 var input_cc = $("[name='_cc']");2757 var input_bcc = $("[name='_bcc']");2758 var input_from = $("[name='_from']");2759 var input_subject = $("[name='_subject']");2760 varinput_message = $("[name='_message']");2755 var ed, input_to = $("[name='_to']"), 2756 input_cc = $("[name='_cc']"), 2757 input_bcc = $("[name='_bcc']"), 2758 input_from = $("[name='_from']"), 2759 input_subject = $("[name='_subject']"), 2760 input_message = $("[name='_message']"); 2761 2761 2762 2762 // check sender (if have no identities) … … 2796 2796 } 2797 2797 2798 // Apply spellcheck changes if spell checker is active 2799 this.stop_spellchecking(); 2800 2801 if (window.tinyMCE) 2802 ed = tinyMCE.get(this.env.composebody); 2803 2798 2804 // check for empty body 2799 if ((!window.tinyMCE || !tinyMCE.get(this.env.composebody)) 2800 && input_message.val() == '' && !confirm(this.get_label('nobodywarning'))) { 2805 if (!ed && input_message.val() == '' && !confirm(this.get_label('nobodywarning'))) { 2801 2806 input_message.focus(); 2802 2807 return false; 2803 2808 } 2804 else if (window.tinyMCE && tinyMCE.get(this.env.composebody) 2805 && !tinyMCE.get(this.env.composebody).getContent() 2806 && !confirm(this.get_label('nobodywarning'))) { 2807 tinyMCE.get(this.env.composebody).focus(); 2808 return false; 2809 } 2810 2811 // Apply spellcheck changes if spell checker is active 2812 this.stop_spellchecking(); 2813 2814 // move body from html editor to textarea (just to be sure, #1485860) 2815 if (window.tinyMCE && tinyMCE.get(this.env.composebody)) 2809 else if (ed) { 2810 if (!ed.getContent() && !confirm(this.get_label('nobodywarning'))) { 2811 ed.focus(); 2812 return false; 2813 } 2814 // move body from html editor to textarea (just to be sure, #1485860) 2816 2815 tinyMCE.triggerSave(); 2816 } 2817 2817 2818 2818 return true; … … 2846 2846 this.stop_spellchecking = function() 2847 2847 { 2848 if (this.env.spellcheck && !this.spellcheck_ready) { 2849 $(this.env.spellcheck.spell_span).trigger('click'); 2848 var ed; 2849 if (window.tinyMCE && (ed = tinyMCE.get(this.env.composebody))) { 2850 ed.execCommand('mceSpellCheck'); 2851 } 2852 else if ((ed = this.env.spellcheck) && !this.spellcheck_ready) { 2853 $(ed.spell_span).trigger('click'); 2850 2854 this.set_spellcheck_state('ready'); 2851 2855 }
Note: See TracChangeset
for help on using the changeset viewer.
