From a4d11095dea6ff8ffbf85e8a78d6a23ec6712643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=9C=A8=E6=9C=A8?= Date: Fri, 3 Jan 2020 20:58:28 +0800 Subject: [PATCH] Update functions.js --- breek/assets/media/js/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/breek/assets/media/js/functions.js b/breek/assets/media/js/functions.js index 892acc1..b41b49b 100644 --- a/breek/assets/media/js/functions.js +++ b/breek/assets/media/js/functions.js @@ -42,7 +42,7 @@ var parse_url = /^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/; var location_href = window.location.href.replace(parse_url,'$3'); - $('.post-excerpt a:not(:has(img)),.post-content a:not(:has(img)),.author-name a').hover(function() { + $('.post-excerpt a:not(:has(img)),.post-content a:not(:has(img)),.author-name a,#friends a.friend').hover(function() { var this_href = $(this).attr('href'); var replace_href = this_href.replace(parse_url,'$3'); if ( this_href != replace_href && location_href != replace_href){$(this).attr('target','_blank');} @@ -104,4 +104,4 @@ }); -})(jQuery); \ No newline at end of file +})(jQuery);