summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-06 13:04:44 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-06 13:04:44 +0000
commit8a5e4124b22046a50ddfcbd2719a2a5ecea249cc (patch)
tree4a92705c8b1b032be72c6c397771dfeeff0ef27a
parentf94d82c9032e61bf5b318a06b473ba515bc49e96 (diff)
- Fix newly attached files are not saved in drafts w/o editing any text (#1486202)
git-svn-id: https://svn.roundcube.net/trunk@3024 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/CHANGELOG1
-rw-r--r--roundcubemail/program/js/app.js8
2 files changed, 7 insertions, 2 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG
index b0518335d..2d0930c6b 100644
--- a/roundcubemail/CHANGELOG
+++ b/roundcubemail/CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail
===========================
+- Fix newly attached files are not saved in drafts w/o editing any text (#1486202)
- Added attachment upload indicator with parallel upload (#1486058)
- Use default_charset for bodies of messages without charset definition (#1486187)
- Password: added cPanel driver
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index d72f9eebb..68011bdda 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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;
};