summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-02-16 19:39:49 +0000
committerthomascube <thomas@roundcube.net>2007-02-16 19:39:49 +0000
commit191667e75b2cfc63df66b91de6b07d7eec4c6d1e (patch)
tree810536d17e1d40a8befda78993dd183f15e4d222
parentb3ce7915610a6d272cc38ecd2a8b61e04ee4aeae (diff)
Don't attempt to clear message list if it doesn't exist
-rw-r--r--program/js/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 1f89bd71e..a961af349 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1226,7 +1226,6 @@ function rcube_webmail()
page = 1;
add_url += '&_refresh=1';
this.env.current_page = page;
- this.message_list.clear_selection();
this.show_messageframe(false);
}
@@ -1239,6 +1238,8 @@ function rcube_webmail()
// load message list remotely
if (this.gui_objects.messagelist)
{
+ if (mbox != this.env.mailbox)
+ this.message_list.clear_selection();
this.list_mailbox_remote(mbox, page, add_url);
return;
}