summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-09 12:15:35 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-09 12:15:35 +0000
commitd9a673fb39f16988d1b7ee3a204c735c1059437a (patch)
tree5e9a4f88bb79d7b5dfe9a0dabe03e824073a0f2d /roundcubemail/program/js
parent6d74e5e0be67eb7043843a0a605b043253e81f5c (diff)
- messages list performance: build subject link on client side
git-svn-id: https://svn.roundcube.net/trunk@3343 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 754954afd..abad6ec6a 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -3900,7 +3900,15 @@ function rcube_webmail()
col.className = 'icon';
col.innerHTML = icon ? '<img src="'+icon+'" alt="" />' : '';
row.appendChild(col);
-
+
+ // build subject link
+ if (!bw.ie && cols.subject) {
+ var action = cols.mbox == this.env.drafts_mailbox ? 'compose' : 'show';
+ var uid_param = cols.mbox == this.env.drafts_mailbox ? '_draft_uid' : '_uid';
+ cols.subject = '<a href="./?_task=mail&_action='+action+'&_mbox='+urlencode(cols.mbox)+'&'+uid_param+'='+uid+'"'+
+ ' onclick="return rcube_event.cancel(event)">'+cols.subject+'</a>';
+ }
+
// add each submitted col
for (var n = 0; n < this.coltypes.length; n++) {
var c = this.coltypes[n];