Fix "Mark Quotes of You"

God, that option name is dumb
This commit is contained in:
Zixaphir 2014-01-13 19:09:41 -07:00
parent 4da7bd827d
commit 6c1eef61c0
4 changed files with 11 additions and 22 deletions

View File

@ -1030,13 +1030,6 @@
this.nodes.date = date;
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.parseQuotes();
this.parseFile(that);
@ -5271,7 +5264,11 @@
if (this.isClone) {
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');
}
if (!this.quotes.length) {

View File

@ -1035,13 +1035,6 @@
this.nodes.date = date;
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.parseQuotes();
this.parseFile(that);
@ -5274,7 +5267,11 @@
if (this.isClone) {
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');
}
if (!this.quotes.length) {

View File

@ -48,11 +48,6 @@ class Post
if date = $ '.dateTime', info
@nodes.date = date
@info.date = new Date date.dataset.utc * 1000
if Conf['Quick Reply']
@info.yours = QR.db.get
boardID: @board
threadID: @thread
postID: @ID
@parseComment()
@parseQuotes()

View File

@ -20,7 +20,7 @@ QuoteYou =
node: ->
return if @isClone
if @info.yours
if QR.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID}
$.addClass @nodes.root, 'yourPost'
# Stop there if there's no quotes in that post.