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* ### 3.20.11 - *2014-04-30*
- Minor bug fixes. - Minor bug fixes.

View File

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

View File

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

View File

@ -57,7 +57,7 @@ QR =
node: -> node: ->
if QR.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID} if QR.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID}
$.addClass @nodes.root, 'your-post' $.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: -> open: ->
if QR.nodes if QR.nodes