From c364d08113dbf1bdbb5cda342cc0ffcefcdb8915 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 11 Feb 2016 14:36:12 -0500 Subject: [PATCH] FIX: Improved like animation --- app/assets/javascripts/discourse/widgets/post-menu.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/widgets/post-menu.js.es6 b/app/assets/javascripts/discourse/widgets/post-menu.js.es6 index ec0d9b91511..571891f15cb 100644 --- a/app/assets/javascripts/discourse/widgets/post-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-menu.js.es6 @@ -290,6 +290,8 @@ export default createWidget('post-menu', { } const $heart = $(`[data-post-id=${attrs.id}] .fa-heart`); + $heart.closest('button').addClass('has-like'); + const scale = [1.0, 1.5]; return new Ember.RSVP.Promise(resolve => { animateHeart($heart, scale[0], scale[1], () => {