mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
Unbind previous click handler before setting a new one, or they get doubled.
This commit is contained in:
parent
b87a366481
commit
fbbe467a7e
@ -252,7 +252,8 @@ var et2_url_ro = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
case "url-phone":
|
||||
if(typeof link == 'function')
|
||||
{
|
||||
this.span.click(this, link);
|
||||
this.span.off('click.et2_url');
|
||||
this.span.on('click.et2_url', link);
|
||||
this.span.attr("href", "#");
|
||||
}
|
||||
else if (link)
|
||||
@ -263,7 +264,8 @@ var et2_url_ro = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
case "url-email":
|
||||
if(typeof link == 'function')
|
||||
{
|
||||
this.span.click(this, link);
|
||||
this.span.off('click.et2_url');
|
||||
this.span.on('click.et2_url', link);
|
||||
this.span.removeAttr("href");
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user