summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-25 18:42:56 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-25 18:42:56 +0000
commit002265f28489df68f6ba2289bc82cc12dd832b2f (patch)
tree57859bb27773d771fb69a78b846e6992d1c6343b /roundcubemail/program/js
parent30e8a4a925222cd9309acb0e3a232c11bc0966ac (diff)
#1485143: fixed empty body validation errors on IE
git-svn-id: https://svn.roundcube.net/trunk@1611 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 9682ada3a..20c561a5f 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -1889,13 +1889,20 @@ function rcube_webmail()
}
// check for empty body
- if ((((!window.tinyMCE || !tinyMCE.get('compose-body')) && input_message.value == '')
- || (window.tinyMCE && tinyMCE.get('compose-body') && tinyMCE.get('compose-body').getContent() == ''))
+ if ((!window.tinyMCE || !tinyMCE.get('compose-body'))
+ && input_message.value == ''
&& !confirm(this.get_label('nobodywarning')))
{
input_message.focus();
return false;
}
+ else if (window.tinyMCE && tinyMCE.get('compose-body')
+ && !tinyMCE.get('compose-body').getContent()
+ && !confirm(this.get_label('nobodywarning')))
+ {
+ tinyMCE.get('compose-body').focus();
+ return false;
+ }
return true;
};