summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-06-14 17:35:26 +0000
committerthomascube <thomas@roundcube.net>2008-06-14 17:35:26 +0000
commit62e43d2c1a61d26f9a07419f7155a2881cb57332 (patch)
treefead3e68d123a335592ba48a7b319d747ac50825 /program/js
parentfca66b0ef41453397cc9f348f412dfd8643745f0 (diff)
Complete implementation of #1484601: add link for saving sender to address book and reload message
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 667b9fbbf..e04da5519 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -185,7 +185,7 @@ function rcube_webmail()
{
if (this.gui_objects.remoteobjectsmsg)
this.gui_objects.remoteobjectsmsg.style.display = 'block';
- this.enable_command('load-images', true);
+ this.enable_command('load-images', 'always-load', true);
}
if (this.env.action=='compose')
@@ -705,6 +705,13 @@ function rcube_webmail()
this.mark_message(flag, uid);
break;
+ case 'always-load':
+ if (this.env.uid && this.env.sender) {
+ this.add_contact(urlencode(this.env.sender));
+ window.setTimeout(function(){ ref.command('load-images'); }, 300);
+ break;
+ }
+
case 'load-images':
if (this.env.uid)
this.show_message(this.env.uid, true, this.env.action=='preview');