]> git.donarmstrong.com Git - roundcube.git/blobdiff - program/js/app.js.src
Imported Upstream version 0.7.2
[roundcube.git] / program / js / app.js.src
index 467ffb0f132c9245546fcf5755c77df71d20152e..f5039119c2b6a061648240edc7b63621c327a907 100644 (file)
@@ -15,7 +15,7 @@
  | Requires: jquery.js, common.js, list.js                               |
  +-----------------------------------------------------------------------+
 
-  $Id: app.js 5635 2011-12-21 10:07:42Z alec $
+  $Id: app.js 5952 2012-03-03 13:20:14Z alec $
 */
 
 function rcube_webmail()
@@ -1407,8 +1407,9 @@ function rcube_webmail()
       div.removeClass('expanded').addClass('collapsed');
       this.env.collapsed_folders = this.env.collapsed_folders+'&'+urlencode(name)+'&';
 
-      // select parent folder if one of its childs is currently selected
-      if (this.env.mailbox.indexOf(name + this.env.delimiter) == 0)
+      // select the folder if one of its childs is currently selected
+      // don't select if it's virtual (#1488346)
+      if (this.env.mailbox.indexOf(name + this.env.delimiter) == 0 && !$(li).hasClass('virtual'))
         this.command('list', name);
     }
     else