* VRFS-1533 - track in success path, not failure path of download GA info

This commit is contained in:
Seth Call 2014-03-25 22:42:15 +00:00
parent 1aef96b697
commit d365054237
1 changed files with 2 additions and 2 deletions

View File

@ -79,11 +79,11 @@
var href = clicked.attr('href');
if(href != "#") {
rest.userDownloadedClient().always(function() {
$('body').append('<iframe class="downloading" src="' + clicked.attr('href') + '" style="display:none"/>')
context.JK.GA.trackDownload(clicked.attr('data-platform'));
$('body').append('<iframe class="downloading" src="' + clicked.attr('href') + '" style="display:none"/>')
});
}
else {
context.JK.GA.trackDownload(clicked.attr('data-platform'));
// if there is no download available, apologize to the user
alert("Sorry, this download is not currently available.");
return false;