From dcaab6b1835a19562eb6825741ce20b2cb8a213e Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 08 May 2012 07:30:55 -0400
Subject: [PATCH] Fix issue where signature wasn't re-added on draft compose (#1488322)

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

diff --git a/CHANGELOG b/CHANGELOG
index fdd3a06..d09eae4 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,8 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+
+- Fix issue where signature wasn't re-added on draft compose (#1488322)
 - Update to TinyMCE 3.5 (#1488459)
 - Fixed multi-threaded autocompletion when number of threads > number of sources
 - Allow to configure the number of values allowed for each LDAP attribute
diff --git a/program/js/app.js b/program/js/app.js
index 2a47fa9..72a2777 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2978,7 +2978,7 @@
       this.set_caret_pos(input_message, this.env.top_posting ? 0 : $(input_message).val().length);
       // add signature according to selected identity
       // if we have HTML editor, signature is added in callback
-      if (input_from.prop('type') == 'select-one' && $("input[name='_draft_saveid']").val() == '') {
+      if (input_from.prop('type') == 'select-one') {
         this.change_identity(input_from[0]);
       }
     }

--
Gitblit v1.9.1