mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Check if email is known contact immediately, previously waited for a mouseover
This commit is contained in:
parent
0034a8fe1c
commit
28a289e5e1
@ -103,14 +103,11 @@ export class Et2EmailTag extends Et2Tag
|
||||
this.addEventListener("mouseenter", this.handleMouseEnter);
|
||||
this.addEventListener("mouseleave", this.handleMouseLeave);
|
||||
|
||||
// If the data is already cached, add it in (after nodes are there)
|
||||
if(typeof Et2EmailTag.email_cache[this.value] !== "undefined")
|
||||
// Send the request
|
||||
this.checkContact(this.value).then((result) =>
|
||||
{
|
||||
this.updateComplete.then(() =>
|
||||
{
|
||||
return this.handleContactResponse(Et2EmailTag.email_cache[this.value]);
|
||||
});
|
||||
}
|
||||
this.handleContactResponse(result);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user