From 425526d3fb0924f92d4f6b7c761b49a5d74d74a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 5 Jun 2014 12:31:29 +0200 Subject: [PATCH] BUGFIX: fix post highlight --- app/assets/javascripts/discourse/views/post_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/post_view.js b/app/assets/javascripts/discourse/views/post_view.js index 7376b23f076..e829c3c6f49 100644 --- a/app/assets/javascripts/discourse/views/post_view.js +++ b/app/assets/javascripts/discourse/views/post_view.js @@ -232,7 +232,7 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, { // If we're meant to highlight a post if ((highlightNumber > 1) && (highlightNumber === postNumber)) { this.set('controller.highlightOnInsert', null); - var $contents = $('.topic-body', $post), + var $contents = $('#post_' + postNumber +' .topic-body', $post), origColor = $contents.data('orig-color') || $contents.css('backgroundColor'); $contents.data("orig-color", origColor);