Skip to content

Commit

Permalink
Inherit parent's title attribute when creating a a popdown element
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Nov 19, 2014
1 parent 55704bb commit 971282c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imp/js/dimpcore.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ var DimpCore = {

var elt = new Element('SPAN', { className: 'horde-popdown' }),
ins = {};
p = $(p);

p = $(p);
if (!p) {
return;
}

elt.writeAttribute({ title: p.readAttribute('title') });

ins[o.insert ? o.insert : 'after'] = elt;
p.insert(ins);

Expand Down

0 comments on commit 971282c

Please sign in to comment.