Highlight Own Posts option

This commit is contained in:
Jordan Bates 2013-04-25 16:15:32 -07:00
parent f2041ab72e
commit a6abc40b9d
6 changed files with 23 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -307,6 +307,10 @@ Config =
true
'Add \'(You)\' to quotes linking to your posts.'
]
'Highlight Own Posts': [
false
'Highlights own posts if Mark Quotes of You is enabled.'
]
'Mark OP Quotes': [
true
'Add \'(OP)\' to OP quotes.'

View File

@ -496,7 +496,7 @@ a.hide-announcement {
.qphl {
outline: 2px solid rgba(216, 94, 49, .7);
}
.yourPost .reply {
.highlight-own .yourPost>.reply {
border-left: 2px solid rgba(221,0,0,.5);
}
/* Quote Threading */

View File

@ -14,6 +14,9 @@ QuoteYou =
if @info.yours
$.addClass @nodes.root, 'yourPost'
if Conf['Highlight Own Posts']
$.addClass doc, 'highlight-own'
# Stop there if there's no quotes in that post.
return unless (quotes = @quotes).length
{quotelinks} = @nodes