Skip to content

Commit

Permalink
changed elements should also be added to expand list
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jun 6, 2014
1 parent a641a50 commit 977f770
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions imp/js/dimpbase.js
Expand Up @@ -3302,14 +3302,15 @@ var DimpBase = {

if (r.a) {
r.a.each(this.flist.createMbox.bind(this.flist));
if (r.expand) {
r.expand = r.base
? [ this.flist.getMbox(r.base) ]
: r.a.pluck('m').collect(this.flist.getMbox.bind(this.flist));
r.expand.invoke('subElement').compact().invoke('down').compact().each(function(sub) {
this._toggleSubFolder(sub, 'exp', true, true);
}, this);
}
}

if (r.expand) {
r.expand = r.base
? [ this.flist.getMbox(r.base) ]
: [ $A(r.c), $A(r.a) ].flatten().pluck('m').compact().collect(this.flist.getMbox.bind(this.flist));
r.expand.invoke('subElement').compact().invoke('down').compact().each(function(sub) {
this._toggleSubFolder(sub, 'exp', true, true);
}, this);
}

if (r.all) {
Expand Down

0 comments on commit 977f770

Please sign in to comment.