diff options
author | Mark Powers <mark@marks.kitchen> | 2021-01-05 20:25:10 -0600 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2021-01-05 20:25:10 -0600 |
commit | 5b5dc610bc0da17fd006982de50b4dc74b134a54 (patch) | |
tree | ff474a8cdbac4f3867a7b7983e20146929fa8eb5 /src/templates/feed.html | |
parent | f2d7673d9743676fcd01d7ab26e7e60d9e21bc8f (diff) |
Refactor likes to use JS to avoid redirect
Diffstat (limited to 'src/templates/feed.html')
-rw-r--r-- | src/templates/feed.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/templates/feed.html b/src/templates/feed.html index ae3494c..3ea4f16 100644 --- a/src/templates/feed.html +++ b/src/templates/feed.html @@ -21,9 +21,9 @@ <a class="tag" href="/tags/{{this}}">{{this}}</a> {{/each}} </span> - <a class="cool btn btn-secondary" href="/post/like/{{this.type}}/{{this.id}}"> + <span class="cool btn btn-secondary" onclick="likePost('{{this.type}}', {{this.id}})" id="btn_{{this.type}}_{{this.id}}"> 👍 ({{this.likes}}) - </a> + </span> </p> </div> {{/each}} |