BUGFIX: fix post highlight
This commit is contained in:
parent
d3035b9405
commit
425526d3fb
|
@ -232,7 +232,7 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, {
|
||||||
// If we're meant to highlight a post
|
// If we're meant to highlight a post
|
||||||
if ((highlightNumber > 1) && (highlightNumber === postNumber)) {
|
if ((highlightNumber > 1) && (highlightNumber === postNumber)) {
|
||||||
this.set('controller.highlightOnInsert', null);
|
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');
|
origColor = $contents.data('orig-color') || $contents.css('backgroundColor');
|
||||||
|
|
||||||
$contents.data("orig-color", origColor);
|
$contents.data("orig-color", origColor);
|
||||||
|
|
Loading…
Reference in New Issue