From be39272087246738f4608bfb84279078c0d6f4c3 Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 16 Nov 2011 10:50:36 +0000 Subject: - Don't add PRE tags when switching to html mode and textarea is empty git-svn-id: https://svn.roundcube.net/trunk@5436 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index c0da94348..254514558 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -5738,7 +5738,7 @@ function rcube_webmail() this.plain2html = function(plainText, id) { var lock = this.set_busy(true, 'converting'); - $(document.getElementById(id)).val('
'+plainText+'
'); + $(document.getElementById(id)).val(plainText ? '
'+plainText+'
' : ''); this.set_busy(false, null, lock); }; -- cgit v1.2.3