Fix logic
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 28 Jul 2009 17:38:37 +0000 (11:38 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 28 Jul 2009 17:38:37 +0000 (11:38 -0600)
imp/js/src/DimpBase.js

index fbb58a9..10006d8 100644 (file)
@@ -2027,9 +2027,9 @@ var DimpBase = {
                     this.createFolder(tmp);
                 }
             } else {
-                parent_e = (ob.pa == DIMP.conf.base_mbox)
-                    ? $('normalfolders')
-                    : $(this.getSubFolderId(this.getFolderId(ob.pa))).down();
+                parent_e = ob.pa
+                    ? $(this.getSubFolderId(this.getFolderId(ob.pa))).down()
+                    : $('normalfolders');
             }
 
             /* Virtual folders are sorted on the server. */