From 43bf74251d3992a4290e04f6da851a251bd0200a Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Tue, 8 Sep 2015 22:55:22 +0200 Subject: [PATCH] replace behavior for event --- assets/js/src/main.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/js/src/main.coffee b/assets/js/src/main.coffee index 8c60941d..4fcc5251 100644 --- a/assets/js/src/main.coffee +++ b/assets/js/src/main.coffee @@ -15,9 +15,10 @@ $ -> $('#profile-resume').text window.profile_resume if window.profile_resume if Uno.is 'device', 'desktop' - $(document.links).filter -> - @hostname != window.location.hostname - .attr 'target', '_blank' + $('a').not('[href*="mailto:"]').click -> + if this.href.indexOf(location.hostname) is -1 + window.open $(this).attr 'href' + false if Uno.is 'page', 'post' $('main').readingTime readingTimeTarget: '.post.reading-time > span'