From c8f7e4d878aae775e16e96c15e4505fd314ffa76 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 12 Feb 2016 13:49:31 -0500 Subject: [PATCH] FIX: Couldn't jump to small action posts --- .../javascripts/discourse/widgets/post-small-action.js.es6 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/discourse/widgets/post-small-action.js.es6 b/app/assets/javascripts/discourse/widgets/post-small-action.js.es6 index 29211eb0d..c0dcea64e 100644 --- a/app/assets/javascripts/discourse/widgets/post-small-action.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-small-action.js.es6 @@ -26,6 +26,10 @@ const icons = { export default createWidget('post-small-action', { tagName: 'div.small-action.onscreen-post.clearfix', + buildId(attrs) { + return `post_${attrs.post_number}`; + }, + buildClasses(attrs) { if (attrs.deleted) { return 'deleted'; } },