From a414d18d4e24bcd37e42704761637b197bd8314b Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 21 Jul 2008 11:14:24 +0000 Subject: #1485173: fixed empty body check git-svn-id: https://svn.roundcube.net/trunk@1602 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roundcubemail/program') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 657a45d19..9682ada3a 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -1889,9 +1889,9 @@ function rcube_webmail() } // check for empty body - if ((input_message.value == '' && - (!window.tinyMCE || tinyMCE.get('compose-body').getContent() == '')) && - !confirm(this.get_label('nobodywarning'))) + if ((((!window.tinyMCE || !tinyMCE.get('compose-body')) && input_message.value == '') + || (window.tinyMCE && tinyMCE.get('compose-body') && tinyMCE.get('compose-body').getContent() == '')) + && !confirm(this.get_label('nobodywarning'))) { input_message.focus(); return false; -- cgit v1.2.3