quote highlighting option
This commit is contained in:
parent
1bd6d23e15
commit
f416ba551c
@ -92,6 +92,7 @@
|
||||
quote: {
|
||||
'Quote Backlinks': [true, 'Add quote backlinks'],
|
||||
'OP Backlinks': [false, 'Add backlinks to the OP'],
|
||||
'Quote Hilighting': [true, 'Highlight the previewed post'],
|
||||
'Quote Inline': [true, 'Show quoted post inline on quote click'],
|
||||
'Quote Preview': [true, 'Show quote content on hover'],
|
||||
'Indicate OP quote': [true, 'Add \'(OP)\' to OP quotes']
|
||||
@ -1898,7 +1899,9 @@
|
||||
qp = $('#qp');
|
||||
if (el = d.getElementById(id)) {
|
||||
qp.innerHTML = el.innerHTML;
|
||||
$.addClass(el, 'qphl');
|
||||
if ($.config('Quote Hilighting')) {
|
||||
$.addClass(el, 'qphl');
|
||||
}
|
||||
if (this.className === 'backlink') {
|
||||
replyID = (_ref = $.x('ancestor::*[@id][1]', this)) != null ? _ref.id.match(/\d+/)[0] : void 0;
|
||||
_ref2 = $$('a.quotelink', qp);
|
||||
|
||||
@ -32,6 +32,7 @@ config =
|
||||
quote:
|
||||
'Quote Backlinks': [true, 'Add quote backlinks']
|
||||
'OP Backlinks': [false, 'Add backlinks to the OP']
|
||||
'Quote Hilighting': [true, 'Highlight the previewed post']
|
||||
'Quote Inline': [true, 'Show quoted post inline on quote click']
|
||||
'Quote Preview': [true, 'Show quote content on hover']
|
||||
'Indicate OP quote': [true, 'Add \'(OP)\' to OP quotes']
|
||||
@ -1498,7 +1499,7 @@ quotePreview =
|
||||
qp = $ '#qp'
|
||||
if el = d.getElementById id
|
||||
qp.innerHTML = el.innerHTML
|
||||
$.addClass el, 'qphl'
|
||||
$.addClass el, 'qphl' if $.config 'Quote Hilighting'
|
||||
if @className is 'backlink'
|
||||
replyID = $.x('ancestor::*[@id][1]', @)?.id.match(/\d+/)[0]
|
||||
for quote in $$ 'a.quotelink', qp
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user