summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-14 17:35:26 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-14 17:35:26 +0000
commitca79c5b5a03381c939985b5920e0ea036e32a3d8 (patch)
tree9e07482c0ae548c0c0379754e7eef83fbab62df5 /roundcubemail/program/js
parent60c6827ef5cdf620caccc6b478b8e573c71aa308 (diff)
Complete implementation of #1484601: add link for saving sender to address book and reload message
git-svn-id: https://svn.roundcube.net/trunk@1534 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 667b9fbbf..e04da5519 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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');