From 31d9efd97d9da09605d4329457ee218cba48f82f Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 10 Aug 2007 04:51:41 -0400
Subject: [PATCH] Simplified code + removed debug log

---
 program/js/app.js |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 6cf9d48..78e2b1a 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1683,13 +1683,10 @@
       }
 
     // 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;

--
Gitblit v1.9.1