Skip to content

Commit

Permalink
Add IMP_Flist_Mbox.virtual()
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jun 9, 2014
1 parent 197f1b6 commit e43274a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion imp/js/dimpbase.js
Expand Up @@ -4144,6 +4144,7 @@ var IMP_Flist = Class.create({
mbox.fs(ob.fs);
mbox.label(label);
mbox.unsubscribed(ob.un && opts.showunsub);
mbox.virtual(ob.v);
this.mboxes[ob.m] = mbox;

if (!ob.s) {
Expand Down Expand Up @@ -4294,7 +4295,8 @@ var IMP_Flist_Mbox = Class.create({
label: null,
nc: false,
unseen: null,
unsub: false
unsub: false,
virtual: false
};
},

Expand Down Expand Up @@ -4405,6 +4407,15 @@ var IMP_Flist_Mbox = Class.create({
return this.data.unsub;
},

virtual: function(v)
{
if (!Object.isUndefined(v)) {
this.data.virtual = !!v;
}

return this.data.virtual;
},

fullMboxDisplay: function()
{
return this.data.elt.readAttribute('title').escapeHTML();
Expand Down

0 comments on commit e43274a

Please sign in to comment.