summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-07-25 18:42:56 +0000
committeralecpl <alec@alec.pl>2008-07-25 18:42:56 +0000
commit5f0724f8adca9b545b89e71287f8276e86881868 (patch)
treeab7aa1038623f1f8cfa107617dbddf9204ed06d7 /program/js
parent6d5dbae53cd4b4b97da0b0c558292a7f1062a524 (diff)
#1485143: fixed empty body validation errors on IE
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 9682ada3a..20c561a5f 100644
--- a/program/js/app.js
+++ b/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;
};