summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-06-10 12:31:14 +0000
committeralecpl <alec@alec.pl>2009-06-10 12:31:14 +0000
commitd9c83e7c46a948adde1f1137eac63904fd778cbe (patch)
tree508a6464db3a3f9416d949b3108482db5e07771a
parent2dd7ee346fdc014b536de8cbbfe7630bac73a43b (diff)
- fix list page change
-rw-r--r--program/js/app.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 590998f28..0933ca631 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1562,7 +1562,6 @@ function rcube_webmail()
// list messages of a specific mailbox
this.list_mailbox = function(mbox, page, sort)
{
- this.last_selected = 0;
var add_url = '';
var target = window;
@@ -1578,17 +1577,20 @@ function rcube_webmail()
add_url += '&_search='+this.env.search_request;
// set page=1 if changeing to another mailbox
- if (!page && mbox != this.env.mailbox)
+ if (!page)
{
page = 1;
this.env.current_page = page;
- if (this.message_list)
- this.message_list.clear_selection();
this.show_contentframe(false);
}
if (mbox != this.env.mailbox || (mbox == this.env.mailbox && !page && !sort))
add_url += '&_refresh=1';
+
+ // unselect selected messages
+ this.last_selected = 0;
+ if (this.message_list)
+ this.message_list.clear_selection();
this.select_folder(mbox, this.env.mailbox);
this.env.mailbox = mbox;