From fd3813bf1aa69b7e4dac97f6e0c5bf875c2284db Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 10 Aug 2007 08:51:41 +0000 Subject: Simplified code + removed debug log git-svn-id: https://svn.roundcube.net/trunk@669 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'roundcubemail/program/js') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 6cf9d4850..78e2b1afa 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -1683,13 +1683,10 @@ function rcube_webmail() } // check for empty body - if ((input_message.value=='')&&(tinyMCE == null ? true : (tinyMCE.getContent()=='' || tinyMCE.getContent() == null))) + if ((input_message.value == '' || (window.tinyMCE && tinyMCE.getContent() == '')) && !confirm(this.get_label('nobodywarning'))) { - if (!confirm(this.get_label('nobodywarning'))) - { - input_message.focus(); - return false; - } + input_message.focus(); + return false; } return true; -- cgit v1.2.3