From c69c0a919719176adccc68b613cbe211ae882cd7 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 19 Dec 2011 02:39:28 -0500
Subject: [PATCH] - Fix expanding folders during drag&drop (#1488260)

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

diff --git a/CHANGELOG b/CHANGELOG
index 6dc8915..8513bb0 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Fix expanding folders during drag&drop (#1488260)
 - Deprecate $DB, $USER, $IMAP global variables, Use $RCMAIL instead
 - Add option to set default font for HTML message (#1484137)
 - Fix issues with big memory allocation of IMAP results
diff --git a/program/js/app.js b/program/js/app.js
index 7753a41..1c24add 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1364,7 +1364,7 @@
               if (this.folder_auto_timer)
                 window.clearTimeout(this.folder_auto_timer);
 
-              this.folder_auto_expand = k;
+              this.folder_auto_expand = this.env.mailboxes[k].id;
               this.folder_auto_timer = window.setTimeout(function() {
                 rcmail.command('collapse-folder', rcmail.folder_auto_expand);
                 rcmail.drag_start(null);

--
Gitblit v1.9.1