From c4383b5f3d233ce610856fc31c446b62ae32ada2 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 212dd862b..e564c4ed9 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)+'&');