diff --git a/services/web/app/views/referal/bonus.pug b/services/web/app/views/referal/bonus.pug index 9b80439a76..67c202c471 100644 --- a/services/web/app/views/referal/bonus.pug +++ b/services/web/app/views/referal/bonus.pug @@ -32,7 +32,7 @@ block content .row .col-md-8.col-md-offset-2.bonus-banner .title - a(href='#', onclick='postToFeed(); return false;').facebook + a(href='#').facebook i.fa.fa-fw.fa-2x.fa-facebook-square(aria-hidden="true") | | #{translate("post_on_facebook")} @@ -158,8 +158,10 @@ block append foot-scripts $(".email").click(function() { ga('send', 'event', 'referal-button', 'clicked', "email") }); - $(".facebook").click(function() { + $(".facebook").click(function(e) { ga('send', 'event', 'referal-button', 'clicked', "facebook") + postToFeed() + e.preventDefault() }); $(".link").click(function() { ga('send', 'event', 'referal-button', 'clicked', "direct-link")