Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:wirelab/shares-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnetters committed May 8, 2017
2 parents adbcd9d + 6a80a51 commit 38cb885
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/views/scripts.twig
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
var whatsapp_shares = document.querySelectorAll('.shares-whatsapp');
for (var i = whatsapp_shares.length - 1; i >= 0; i--) {
whatsapp_shares[i].style.display = '';
whatsapp_shares[i].addEventListener('click', function(event){
trackShare('whatsapp');
});
}
$('.shares-whatsapp').click(function(event) { trackShare("whatsapp"); });
}
/**
Expand Down Expand Up @@ -80,4 +82,4 @@
}, function(response){ trackShare("facebook") });
});
}
</script>
</script>

0 comments on commit 38cb885

Please sign in to comment.