summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-21 11:14:24 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-21 11:14:24 +0000
commita414d18d4e24bcd37e42704761637b197bd8314b (patch)
treed8319058cc0e29770439d3997a518ab1b8c1ea0f /roundcubemail/program
parent28f32354825a34c54c9004c5a9f920a5f9eb1f41 (diff)
#1485173: fixed empty body check
git-svn-id: https://svn.roundcube.net/trunk@1602 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js6
1 files changed, 3 insertions, 3 deletions
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;