handle anchors that are not hrefs
This commit is contained in:
parent
9a6e5a5b8b
commit
4471b2ad6e
|
@ -5,6 +5,9 @@
|
|||
$(function() {
|
||||
$("a").each(function() {
|
||||
var that = this;
|
||||
if (!$(this).hasAttr("href")) {
|
||||
return;
|
||||
}
|
||||
$(this).attr("target", "_blank");
|
||||
var link = $(this).attr("href");
|
||||
if (link.indexOf(PADMA_URL) != -1) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user