Remove javascript:void() href to comply with CSP

This commit is contained in:
Nathan Gray 2013-10-07 10:05:51 +00:00
parent 869ebc3ca5
commit a190cd7302

View File

@ -266,7 +266,7 @@ var et2_url_ro = et2_valueWidget.extend([et2_IDetachedDOM],
if(typeof link == 'function') if(typeof link == 'function')
{ {
this.span.click(this, link); this.span.click(this, link);
this.span.attr("href", "javascript:void(0)"); this.span.removeAttr("href");
} }
else else
{ {
@ -303,9 +303,9 @@ var et2_url_ro = et2_valueWidget.extend([et2_IDetachedDOM],
this.set_value(_values["value"]); this.set_value(_values["value"]);
} }
if (typeof _values["class"] != "undefined") if (typeof _values["class"] != "undefined")
{ {
_nodes[0].setAttribute("class", _values["class"]); _nodes[0].setAttribute("class", _values["class"]);
} }
} }
}); });
et2_register_widget(et2_url_ro, ["url_ro", "url-email_ro", "url-phone_ro"]); et2_register_widget(et2_url_ro, ["url_ro", "url-email_ro", "url-phone_ro"]);