From b45b15e5a8ac8f3265bea989b47273355379b89d Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 16 Aug 2015 14:00:06 +0200 Subject: [PATCH] Fix selecting a folder on collapse when any subfolder is selected --- program/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index d82d8c636..53d678cfa 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1615,8 +1615,8 @@ function rcube_webmail() // select the folder if one of its childs is currently selected // don't select if it's virtual (#1488346) - if (!node.virtual && this.env.mailbox && this.env.mailbox.startsWith(name + this.env.delimiter)) - this.command('list', name); + if (!node.virtual && this.env.mailbox && this.env.mailbox.startsWith(node.id + this.env.delimiter)) + this.command('list', node.id); } else { var reg = new RegExp('&'+urlencode(node.id)+'&');