From cd89d9318910fe7b2a7193172d1956a57fa82dba Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 8 Apr 2013 21:10:43 +0200 Subject: [PATCH] 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. --- 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 11fbebef1..583de63cb 100644 --- a/css/style.css +++ b/css/style.css @@ -432,7 +432,7 @@ a[href="javascript:;"] { max-height: 300px; max-width: 500px; } -.qphl > .post { +.qphl { outline: 2px solid rgba(216, 94, 49, .7); } diff --git a/src/features.coffee b/src/features.coffee index a0c93c28a..ea30e7b67 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -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 =