Skip to content
Snippets Groups Projects
Commit 4bf6b435 authored by Nate Lampton's avatar Nate Lampton
Browse files

Issue #2243457 by herve001 | rian76: CSS exclusion stopped working.

parent 3c909e7a
No related branches found
No related tags found
No related merge requests found
......@@ -56,18 +56,17 @@ function extlinkAttach(context) {
try {
var url = this.href.toLowerCase();
if (url.indexOf('http') == 0
&& (!url.match(internal_link) && !(extExclude && url.match(extExclude)))
|| (extInclude && url.match(extInclude))
&& !(extCssExclude && $(this).parents(extCssExclude).length > 0)
&& !(extCssExplicit && $(this).parents(extCssExplicit).length < 1)) {
&& ((!url.match(internal_link) && !(extExclude && url.match(extExclude))) || (extInclude && url.match(extInclude)))
&& !(extCssExclude && $(this).parents(extCssExclude).length > 0)
&& !(extCssExplicit && $(this).parents(extCssExplicit).length < 1)) {
external_links.push(this);
}
// Do not include area tags with begin with mailto: (this prohibits
// icons from being added to image-maps).
else if (this.tagName != 'AREA'
&& url.indexOf('mailto:') == 0
&& !(extCssExclude && $(this).parents(extCssExclude).length > 0)
&& !(extCssExplicit && $(this).parents(extCssExplicit).length < 1)) {
&& !(extCssExclude && $(this).parents(extCssExclude).length > 0)
&& !(extCssExplicit && $(this).parents(extCssExplicit).length < 1)) {
mailto_links.push(this);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment