We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba720c1 commit 169561bCopy full SHA for 169561b
_includes/headerbottom.html
@@ -32,7 +32,13 @@
32
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
33
})();
34
var f = function(event){
35
- _gaq.push(['_trackEvent','Downloads','Download',$(this).attr('href')]);
+ var href = $(this).attr('href');
36
+ var target = $(this).attr('target');
37
+ _gaq.push(['_trackEvent','Downloads','Download',href]);
38
+ if (target === undefined || target.toLowerCase() != '_blank') {
39
+ setTimeout(function() { location.href = href; }, 200);
40
+ return false;
41
+ }
42
};
43
function endsWith(str, suffix) {
44
return str.indexOf(suffix, str.length - suffix.length) !== -1;
0 commit comments