Skip to content

Commit

Permalink
Bug #13644: Keep track of subfolder loaded status on the browser
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz authored and yunosh committed Apr 23, 2015
1 parent 2c70705 commit 0473ab5
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions imp/js/dimpbase.js
Expand Up @@ -3491,9 +3491,10 @@ var DimpBase = {
}

if (mode == 'tog' || mode == 'expall') {
subs.each(function(s) {
if (!s.visible() && !s.childElements().size()) {
need.set(this.flist.getMbox(s.previous()).value(), 1);
subs.invoke('previous').each(function(s) {
var s2 = this.flist.getMbox(s);
if (!s2.loaded()) {
need.set(s2.value(), 1);
}
}, this);

Expand Down Expand Up @@ -4369,6 +4370,10 @@ var IMP_Flist_Mbox = Class.create({
{
var elt;

if (e) {
this.data.load = true;
}

if (this.data.fake) {
return this.data.fake.expand(e);
} else if (!Object.isUndefined(e)) {
Expand Down Expand Up @@ -4479,6 +4484,11 @@ var IMP_Flist_Mbox = Class.create({
return 'mbox';
},

loaded: function()
{
return !!this.data.load;
},

nc: function()
{
return !!this.data.nc;
Expand Down

0 comments on commit 0473ab5

Please sign in to comment.