Add "yours" property to "Post" class, use it for backlinks
This commit is contained in:
parent
56313213d1
commit
6fa291468d
File diff suppressed because one or more lines are too long
@ -536,7 +536,6 @@ a[href="javascript:;"] {
|
|||||||
-webkit-flex: 1;
|
-webkit-flex: 1;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
.persona .field:hover,
|
|
||||||
.persona .field:focus {
|
.persona .field:focus {
|
||||||
-webkit-flex: 4;
|
-webkit-flex: 4;
|
||||||
flex: 4;
|
flex: 4;
|
||||||
|
|||||||
@ -2683,7 +2683,7 @@ QuoteBacklink =
|
|||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
href: "/#{@board}/res/#{@thread}#p#{@}"
|
href: "/#{@board}/res/#{@thread}#p#{@}"
|
||||||
className: if @isHidden then 'filtered backlink' else 'backlink'
|
className: if @isHidden then 'filtered backlink' else 'backlink'
|
||||||
textContent: QuoteBacklink.funk @ID
|
textContent: (QuoteBacklink.funk @ID) + (if Conf['Mark Quotes of You'] and @info.yours then QuoteYou.text else '')
|
||||||
for quote in @quotes
|
for quote in @quotes
|
||||||
containers = [QuoteBacklink.getContainer quote]
|
containers = [QuoteBacklink.getContainer quote]
|
||||||
if (post = g.posts[quote]) and post.nodes.backlinkContainer
|
if (post = g.posts[quote]) and post.nodes.backlinkContainer
|
||||||
|
|||||||
@ -65,6 +65,8 @@ class Post
|
|||||||
if date = $ '.dateTime', info
|
if date = $ '.dateTime', info
|
||||||
@nodes.date = date
|
@nodes.date = date
|
||||||
@info.date = new Date date.dataset.utc * 1000
|
@info.date = new Date date.dataset.utc * 1000
|
||||||
|
if Conf['Quick Reply']
|
||||||
|
@info.yours = !!QR.yourPosts.threads[@thread.ID]?.contains(@ID)
|
||||||
|
|
||||||
@parseComment()
|
@parseComment()
|
||||||
@parseQuotes()
|
@parseQuotes()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user