From b4d940b112f05f734001721e25040d9768677a93 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 6 Oct 2009 13:04:44 +0000 Subject: - Fix newly attached files are not saved in drafts w/o editing any text (#1486202) --- program/js/app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index d72f9eebb..68011bdda 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -2283,10 +2283,14 @@ function rcube_webmail() str += editor.getContent(); else str += $("[name='_message']").val(); - + + if (this.env.attachments) + for (var upload_id in this.env.attachments) + str += upload_id; + if (save) this.cmp_hash = str; - + return str; }; -- cgit v1.2.3