Skip to content

Commit

Permalink
Add IMP_Flist_Mbox.iconElement()
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jun 9, 2014
1 parent 09e5f0e commit 7fad493
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions imp/js/dimpbase.js
Expand Up @@ -3399,7 +3399,7 @@ var DimpBase = {
return;
}

if (mbox.expand() !== null) {
if ((mbox.expand() !== null) && (elt == mbox.iconElement())) {
this._toggleSubFolder(mbox.element(), 'tog');
} else {
switch (mbox.ftype()) {
Expand Down Expand Up @@ -4284,7 +4284,7 @@ var IMP_Flist_Mbox = Class.create({
if (this.data.fake) {
return this.data.fake.expand(e);
} else if (!Object.isUndefined(e)) {
elt = this.data.elt.down('DIV.horde-subnavi-icon');
elt = this.iconElement();
[ 'col', 'exp', 'folderImg' ].each(elt.removeClassName.bind(elt));

if (e === null) {
Expand Down Expand Up @@ -4332,6 +4332,11 @@ var IMP_Flist_Mbox = Class.create({
return elt ? elt.previous() : null;
},

iconElement: function()
{
return this.data.elt.down('DIV.horde-subnavi-icon');
},

value: function()
{
return this.data.m;
Expand Down

0 comments on commit 7fad493

Please sign in to comment.