Fix some things broken by removing the Quick Reply option.

close #289, close #291
.__.
This commit is contained in:
Zixaphir 2013-05-10 02:46:33 -07:00
parent 9ce09d216e
commit 2a3e0770ce
6 changed files with 30 additions and 38 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

@ -41,12 +41,10 @@ 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
@info.yours = QR.db.get boardID: @board
boardID: @board threadID: @thread
threadID: @thread postID: @ID
postID: @ID
@parseComment() @parseComment()
@parseQuotes() @parseQuotes()

View File

@ -143,7 +143,7 @@ Keybinds =
key key
qr: (thread, quote) -> qr: (thread, quote) ->
return unless Conf['Quick Reply'] and QR.postingIsEnabled return unless QR.postingIsEnabled
do QR.open do QR.open
if quote if quote
QR.quote.call $ 'input', $('.post.highlight', thread) or thread QR.quote.call $ 'input', $('.post.highlight', thread) or thread

View File

@ -1,6 +1,6 @@
QuoteYou = QuoteYou =
init: -> init: ->
return if g.VIEW is 'catalog' or !Conf['Mark Quotes of You'] or !Conf['Quick Reply'] return if g.VIEW is 'catalog' or !Conf['Mark Quotes of You']
if Conf['Highlight Own Posts'] if Conf['Highlight Own Posts']
$.addClass doc, 'highlight-own' $.addClass doc, 'highlight-own'