mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 18:44:05 +00:00
Merge pull request #3919 from overleaf/jpa-refactor-inline-script
[views] referal/bonus: refactor inline script in event handler GitOrigin-RevId: 825f15c1badf964e0e0e2c9bc42951a5f318b357
This commit is contained in:
parent
97f89f132c
commit
7d0f117918
1 changed files with 4 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue