Add the qphl class to the root. #932

This commit is contained in:
Nicolas Stepien 2013-03-24 03:28:15 +01:00
parent e0cab6e8b3
commit ef5afbf2b9
2 changed files with 3 additions and 3 deletions

View File

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

View File

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