summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-22 07:49:33 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-22 07:49:33 +0000
commit51bffd16f124e26c232a192c852a05f795a171ce (patch)
tree595275a0b0a36767f3b558a62e94a3f515c79a62 /roundcubemail/program/js/app.js
parent4d311edcc97cb82309025eeffa0c1e4ab93e076c (diff)
- Fix bug where after delete message rows can be added to the list of another folder (#1487752)
git-svn-id: https://svn.roundcube.net/trunk@5266 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 65d4f066f..a9fbe987d 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -1641,6 +1641,10 @@ function rcube_webmail()
if (!this.gui_objects.messagelist || !this.message_list)
return false;
+ // Prevent from adding messages from different folder (#1487752)
+ if (flags.mbox != this.env.mailbox && !flags.skip_mbox_check)
+ return false;
+
if (!this.env.messages[uid])
this.env.messages[uid] = {};
@@ -2091,8 +2095,12 @@ function rcube_webmail()
};
// Initializes threads indicators/expanders after list update
- this.init_threads = function(roots)
+ this.init_threads = function(roots, mbox)
{
+ // #1487752
+ if (mbox && mbox != this.env.mailbox)
+ return false;
+
for (var n=0, len=roots.length; n<len; n++)
this.add_tree_icons(roots[n]);
this.expand_threads();
@@ -5463,8 +5471,12 @@ function rcube_webmail()
};
// replace content of row count display
- this.set_rowcount = function(text)
+ this.set_rowcount = function(text, mbox)
{
+ // #1487752
+ if (mbox && mbox != this.env.mailbox)
+ return false;
+
$(this.gui_objects.countdisplay).html(text);
// update page navigation buttons