Skip to content
Snippets Groups Projects
Commit 2d946db6 authored by llaffont's avatar llaffont
Browse files

Correction lien externe https:// ouvert dans un nouvel onglet

parent ba19f055
Branches
Tags
No related merge requests found
......@@ -48,7 +48,7 @@ if (typeof jQuery != "undefined") $(document).ready(resize_func);
//Les liens qui référencent des sites externes doivent être ouverts dans un nouvel onglet
var setupAnchorsTarget = function() {
var internalLink = new RegExp('/' + window.location.host + '/');
$('a[href^="http://"]').each(function() {
$('a[href^="http"]').each(function() {
if (!internalLink.test($(this).attr('href')) && (undefined == this.onclick) && (undefined == $(this).data('events') || undefined == $(this).data('events').click)) {
if ($.browser.msie) { //Sinon IE n'envoie pas le HTTP REFERRER
this.target = '_blank';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment