This commit is contained in:
Mayhem 2014-05-03 14:34:08 +02:00
parent 6c748be4cb
commit 92e08cd76b
4 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,5 @@
- Fix quoting.
### 3.20.11 - *2014-04-30*
- Minor bug fixes.

View File

@ -208,13 +208,13 @@ Build =
' </span> ' +
"<span class=dateTime data-utc=#{dateUTC}>#{date}</span> " +
"<span class='postNum'>" +
"<a href=#{Build.path boardID, threadID, postID} title='Highlight this post'>No.</a>" +
"<a href=#{Build.path boardID, threadID, postID} title='Link to this post'>No.</a>" +
"<a href='#{
if g.VIEW is 'thread' and g.THREADID is threadID
"javascript:quote(#{postID})"
else
Build.path boardID, threadID, postID, 'q'
}' title='Quote this post'>#{postID}</a>" +
}' title='Reply to this post'>#{postID}</a>" +
pageIcon + sticky + closed + replyLink +
'</span>' +
'</div>' +

View File

@ -49,7 +49,7 @@ class Thread
else if g.VIEW is 'index'
$ '.page-num', @OP.nodes.info
else
$ '[title="Quote this post"]', @OP.nodes.info
$ '[title="Reply to this post"]', @OP.nodes.info
$.after root, [$.tn(' '), icon]
return unless @catalogView

View File

@ -57,7 +57,7 @@ QR =
node: ->
if QR.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID}
$.addClass @nodes.root, 'your-post'
$.on $('a[title="Quote this post"]', @nodes.info), 'click', QR.quote
$.on $('a[title="Reply to this post"]', @nodes.info), 'click', QR.quote
open: ->
if QR.nodes