Fix links inside a document see BT#10217

1.9.x
Julio 10 years ago
parent 6deec4925a
commit 4a2ba2a140
  1. 9
      main/inc/lib/javascript/fixlinks.js

@ -59,4 +59,13 @@ $(document).ready(function() {
});
}
});
var anchors = $(document).find('a');
anchors.each(function (value, obj) {
var src = $(this).attr('href');
src = src.replace('https', 'http');
var myAnchor = $('<a>(Alternative link)</a>').attr("href", src).attr('target', '_blank');
$(this).after(myAnchor);
$(this).after('-');
});
});

Loading…
Cancel
Save