Fix "Mark Quotes of You"
God, that option name is dumb
This commit is contained in:
parent
4da7bd827d
commit
6c1eef61c0
@ -1030,13 +1030,6 @@
|
|||||||
this.nodes.date = date;
|
this.nodes.date = date;
|
||||||
this.info.date = new Date(date.dataset.utc * 1000);
|
this.info.date = new Date(date.dataset.utc * 1000);
|
||||||
}
|
}
|
||||||
if (Conf['Quick Reply']) {
|
|
||||||
this.info.yours = QR.db.get({
|
|
||||||
boardID: this.board,
|
|
||||||
threadID: this.thread,
|
|
||||||
postID: this.ID
|
|
||||||
});
|
|
||||||
}
|
|
||||||
this.parseComment();
|
this.parseComment();
|
||||||
this.parseQuotes();
|
this.parseQuotes();
|
||||||
this.parseFile(that);
|
this.parseFile(that);
|
||||||
@ -5271,7 +5264,11 @@
|
|||||||
if (this.isClone) {
|
if (this.isClone) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.info.yours) {
|
if (QR.db.get({
|
||||||
|
boardID: this.board.ID,
|
||||||
|
threadID: this.thread.ID,
|
||||||
|
postID: this.ID
|
||||||
|
})) {
|
||||||
$.addClass(this.nodes.root, 'yourPost');
|
$.addClass(this.nodes.root, 'yourPost');
|
||||||
}
|
}
|
||||||
if (!this.quotes.length) {
|
if (!this.quotes.length) {
|
||||||
|
|||||||
@ -1035,13 +1035,6 @@
|
|||||||
this.nodes.date = date;
|
this.nodes.date = date;
|
||||||
this.info.date = new Date(date.dataset.utc * 1000);
|
this.info.date = new Date(date.dataset.utc * 1000);
|
||||||
}
|
}
|
||||||
if (Conf['Quick Reply']) {
|
|
||||||
this.info.yours = QR.db.get({
|
|
||||||
boardID: this.board,
|
|
||||||
threadID: this.thread,
|
|
||||||
postID: this.ID
|
|
||||||
});
|
|
||||||
}
|
|
||||||
this.parseComment();
|
this.parseComment();
|
||||||
this.parseQuotes();
|
this.parseQuotes();
|
||||||
this.parseFile(that);
|
this.parseFile(that);
|
||||||
@ -5274,7 +5267,11 @@
|
|||||||
if (this.isClone) {
|
if (this.isClone) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.info.yours) {
|
if (QR.db.get({
|
||||||
|
boardID: this.board.ID,
|
||||||
|
threadID: this.thread.ID,
|
||||||
|
postID: this.ID
|
||||||
|
})) {
|
||||||
$.addClass(this.nodes.root, 'yourPost');
|
$.addClass(this.nodes.root, 'yourPost');
|
||||||
}
|
}
|
||||||
if (!this.quotes.length) {
|
if (!this.quotes.length) {
|
||||||
|
|||||||
@ -48,11 +48,6 @@ 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.db.get
|
|
||||||
boardID: @board
|
|
||||||
threadID: @thread
|
|
||||||
postID: @ID
|
|
||||||
|
|
||||||
@parseComment()
|
@parseComment()
|
||||||
@parseQuotes()
|
@parseQuotes()
|
||||||
|
|||||||
@ -20,7 +20,7 @@ QuoteYou =
|
|||||||
node: ->
|
node: ->
|
||||||
return if @isClone
|
return if @isClone
|
||||||
|
|
||||||
if @info.yours
|
if QR.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID}
|
||||||
$.addClass @nodes.root, 'yourPost'
|
$.addClass @nodes.root, 'yourPost'
|
||||||
|
|
||||||
# Stop there if there's no quotes in that post.
|
# Stop there if there's no quotes in that post.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user