Move the qphl class back to the post instead of the postContainer.

It's the source of performance issues when quote previewing in large threads.
This commit is contained in:
Nicolas Stepien 2013-04-08 21:10:43 +02:00
parent 59df0e0e24
commit cd89d93189
2 changed files with 3 additions and 3 deletions

View File

@ -432,7 +432,7 @@ a[href="javascript:;"] {
max-height: 300px;
max-width: 500px;
}
.qphl > .post {
.qphl {
outline: 2px solid rgba(216, 94, 49, .7);
}

View File

@ -2728,7 +2728,7 @@ QuotePreview =
# Remove the clone that's in the qp from the array.
posts.pop()
for post in posts
$.addClass post.nodes.root, 'qphl'
$.addClass post.nodes.post, 'qphl'
quoterID = $.x('ancestor::*[@id][1]', @).id.match(/\d+$/)[0]
clone = Get.postFromRoot qp.firstChild
@ -2746,7 +2746,7 @@ QuotePreview =
return unless Conf['Quote Highlighting']
for post in [post].concat post.clones
$.rmClass post.nodes.root, 'qphl'
$.rmClass post.nodes.post, 'qphl'
return
QuoteBacklink =