From ef5afbf2b91902a2c0491c75a34aa2def9e4355a Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 24 Mar 2013 03:28:15 +0100 Subject: [PATCH] Add the qphl class to the root. #932 --- css/style.css | 2 +- src/features.coffee | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/css/style.css b/css/style.css index b58251f73..2edec9e13 100644 --- a/css/style.css +++ b/css/style.css @@ -429,7 +429,7 @@ a[href="javascript:;"] { max-height: 300px; max-width: 500px; } -.qphl { +.qphl > .post { outline: 2px solid rgba(216, 94, 49, .7); } diff --git a/src/features.coffee b/src/features.coffee index afb9f07c2..c978729bd 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -2632,7 +2632,7 @@ QuotePreview = # Remove the clone that's in the qp from the array. posts.pop() for post in posts - $.addClass post.nodes.post, 'qphl' + $.addClass post.nodes.root, 'qphl' quoterID = $.x('ancestor::*[@id][1]', @).id.match(/\d+$/)[0] clone = Get.postFromRoot qp.firstChild @@ -2653,7 +2653,7 @@ QuotePreview = return unless Conf['Quote Highlighting'] for post in [post].concat post.clones - $.rmClass post.nodes.post, 'qphl' + $.rmClass post.nodes.root, 'qphl' return QuoteBacklink =