#1485173: fixed empty body check

release-0.6
alecpl 17 years ago
parent 5b1de55981
commit 808fb26b61

@ -1889,9 +1889,9 @@ function rcube_webmail()
} }
// check for empty body // check for empty body
if ((input_message.value == '' && if ((((!window.tinyMCE || !tinyMCE.get('compose-body')) && input_message.value == '')
(!window.tinyMCE || tinyMCE.get('compose-body').getContent() == '')) && || (window.tinyMCE && tinyMCE.get('compose-body') && tinyMCE.get('compose-body').getContent() == ''))
!confirm(this.get_label('nobodywarning'))) && !confirm(this.get_label('nobodywarning')))
{ {
input_message.focus(); input_message.focus();
return false; return false;

Loading…
Cancel
Save