Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 3016b482 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

update js-function for checking internal links

parent c75c0008
No related branches found
Tags Release/v3.1.2.796
No related merge requests found
......@@ -58,13 +58,14 @@ function CheckGeneratedLinks() {
var link=jQuery(elem).attr("href");
if(link.startsWith("javascript:")) {return true}
if (!link.startsWith("#")) { content.append("ignoring: " + link +"<br/>"); return true; }
var node=jQuery(link);
var node=jQuery("*[id='" + link.replace("#", "") + "']");
if (node.length) {
content.append("found: " + link)
} else {
content.append("missing: " + link)
};
content.append("<br/>"); });
content.append("<br/>");
});
}
</script>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment