summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-06-18 18:30:35 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-06-18 18:30:35 +0000
commit224192705a864521de5d86607b4992c8e7c9e8ad (patch)
treebcdf0d69f172ef28c1afcd07b93cb79e383c255e /roundcubemail/program
parent48d80ae4520303a2e1768317025f454df42b8a20 (diff)
- unset env.messages on mailbox change to save some browser's memory
git-svn-id: https://svn.roundcube.net/trunk@3765 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 8cf81f8ec..402e1f994 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -1302,7 +1302,7 @@ function rcube_webmail()
this.env.folder_coords[k].on = 0;
}
}
-
+
if (layerclass != oldclass && this.contact_list && this.contact_list.draglayer)
this.contact_list.draglayer.attr('class', layerclass);
}
@@ -1495,13 +1495,13 @@ function rcube_webmail()
if (this.env.messages[row.uid])
this.env.messages[row.uid].expanded = row.expanded;
};
-
+
this.msglist_set_coltypes = function(list)
{
var i, found, name, cols = list.list.tHead.rows[0].cells;
-
+
this.env.coltypes = [];
-
+
for (i=0; i<cols.length; i++)
if (cols[i].id && cols[i].id.match(/^rcm/)) {
name = cols[i].id.replace(/^rcm/, '');
@@ -1520,7 +1520,7 @@ function rcube_webmail()
this.check_droptarget = function(id)
{
var allow = false, copy = false;
-
+
if (this.task == 'mail')
allow = (this.env.mailboxes[id] && this.env.mailboxes[id].id != this.env.mailbox && !this.env.mailboxes[id].virtual);
else if (this.task == 'settings')
@@ -1896,6 +1896,7 @@ function rcube_webmail()
this.env.current_page = page;
this.select_all_mode = false;
this.show_contentframe(false);
+ this.env.messages = {};
}
if (mbox != this.env.mailbox || (mbox == this.env.mailbox && !page && !sort))
@@ -2260,8 +2261,6 @@ function rcube_webmail()
rows[uid].forwarded = status;
else if (flag == 'flagged')
rows[uid].flagged = status;
-
-// this.env.messages[uid] = rows[uid];
};
// set message row status, class and icon