mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
Remove javascript:void() href to comply with CSP
This commit is contained in:
parent
869ebc3ca5
commit
a190cd7302
@ -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"]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user