diff --git a/etemplate/js/et2_widget_url.js b/etemplate/js/et2_widget_url.js index decff0edda..c5f892598c 100644 --- a/etemplate/js/et2_widget_url.js +++ b/etemplate/js/et2_widget_url.js @@ -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