mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
FIX: Improved like animation
This commit is contained in:
parent
5af00da2d8
commit
c364d08113
1 changed files with 2 additions and 0 deletions
|
@ -290,6 +290,8 @@ export default createWidget('post-menu', {
|
||||||
}
|
}
|
||||||
|
|
||||||
const $heart = $(`[data-post-id=${attrs.id}] .fa-heart`);
|
const $heart = $(`[data-post-id=${attrs.id}] .fa-heart`);
|
||||||
|
$heart.closest('button').addClass('has-like');
|
||||||
|
|
||||||
const scale = [1.0, 1.5];
|
const scale = [1.0, 1.5];
|
||||||
return new Ember.RSVP.Promise(resolve => {
|
return new Ember.RSVP.Promise(resolve => {
|
||||||
animateHeart($heart, scale[0], scale[1], () => {
|
animateHeart($heart, scale[0], scale[1], () => {
|
||||||
|
|
Loading…
Reference in a new issue