BUGFIX: fix post highlight

This commit is contained in:
Régis Hanol 2014-06-05 12:31:29 +02:00
parent d3035b9405
commit 425526d3fb
1 changed files with 1 additions and 1 deletions

View File

@ -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);