Notifications like button bugfix
This commit is contained in:
parent
a98c218628
commit
16da91ce1e
|
@ -427,7 +427,9 @@
|
||||||
{{$Like := $Root.PhotoLikeMap.Get $Body.PhotoID}}
|
{{$Like := $Root.PhotoLikeMap.Get $Body.PhotoID}}
|
||||||
<a href="#" class="button is-small nonshy-like-button"
|
<a href="#" class="button is-small nonshy-like-button"
|
||||||
data-table-name="photos" data-table-id="{{$Body.PhotoID}}"
|
data-table-name="photos" data-table-id="{{$Body.PhotoID}}"
|
||||||
title="Like">
|
title="Like" onclick="return false">
|
||||||
|
<!-- TODO: the return false above fixes a bug on mobile where it jumps to
|
||||||
|
the top of page, despite preventDefault() and it doesn't happen on desktop! -->
|
||||||
<span class="icon{{if $Like.UserLikes}} has-text-danger{{end}}"><i class="fa fa-heart"></i></span>
|
<span class="icon{{if $Like.UserLikes}} has-text-danger{{end}}"><i class="fa fa-heart"></i></span>
|
||||||
<span class="nonshy-likes">
|
<span class="nonshy-likes">
|
||||||
Like
|
Like
|
||||||
|
|
Loading…
Reference in New Issue
Block a user