From 7b77f2e83a134ca7bfd6d38f06b9e6d01968e98e Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 02 Oct 2008 13:57:25 -0400
Subject: [PATCH] - don't reload messages list if user clicks on (already) selected folder

---
 program/js/app.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index b7a3ed5..ce2b4f9 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -533,7 +533,8 @@
           if (this.env.search_request<0 || (props != '' && (this.env.search_request && props != this.env.mailbox)))
             this.reset_qsearch();
 
-          this.list_mailbox(props);
+	  if (props != this.env.mailbox)
+            this.list_mailbox(props);
 
           if (this.env.trash_mailbox)
             this.set_alttext('delete', this.env.mailbox != this.env.trash_mailbox ? 'movemessagetotrash' : 'deletemessage');

--
Gitblit v1.9.1