From f3cfbb791e618542fbd997e86b2571edc172412d Mon Sep 17 00:00:00 2001 From: megri Date: Wed, 12 Jul 2017 22:45:07 +0200 Subject: [PATCH] remove location.href-redirect and let event take its course --- resources/js/main.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/resources/js/main.js b/resources/js/main.js index c28098a4b..1843ab468 100755 --- a/resources/js/main.js +++ b/resources/js/main.js @@ -451,12 +451,7 @@ _gaq.push(['_trackPageview']); })(); var f = function(event){ var href = $(this).attr('href'); - var target = $(this).attr('target'); _gaq.push(['_trackEvent','Downloads','Download',href]); - if (target === undefined || target.toLowerCase() != '_blank') { - setTimeout(function() { location.href = href; }, 200); - return false; - } }; function endsWith(str, suffix) { if (str && suffix)