summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-07-21 11:14:24 +0000
committeralecpl <alec@alec.pl>2008-07-21 11:14:24 +0000
commit808fb26b619bb858cd77010a7d42648e21f07f81 (patch)
treedce5f21ac64e2d76803256f9d79e45429f336a87
parent5b1de5598164c136567c29149c117aa8a4198f1b (diff)
#1485173: fixed empty body check
-rw-r--r--program/js/app.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 657a45d19..9682ada3a 100644
--- a/program/js/app.js
+++ b/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;