From 4d81544057bae4fcacaa20b629a159f625c7de4d Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 9 Mar 2010 12:15:35 +0000 Subject: - messages list performance: build subject link on client side --- program/js/app.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index 754954afd..abad6ec6a 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3900,7 +3900,15 @@ function rcube_webmail() col.className = 'icon'; col.innerHTML = icon ? '' : ''; 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 = ''+cols.subject+''; + } + // add each submitted col for (var n = 0; n < this.coltypes.length; n++) { var c = this.coltypes[n]; -- cgit v1.2.3