apply Mayhem's quoting fix
This commit is contained in:
parent
f6a5fce277
commit
57f780ebfb
@ -13,7 +13,7 @@ Get =
|
|||||||
threadFromNode: (node) ->
|
threadFromNode: (node) ->
|
||||||
Get.threadFromRoot $.x 'ancestor::div[@class="thread"]', node
|
Get.threadFromRoot $.x 'ancestor::div[@class="thread"]', node
|
||||||
postFromRoot: (root) ->
|
postFromRoot: (root) ->
|
||||||
link = $ 'a[title="Highlight this post"]', root
|
link = $ 'a[title="Link to this post"]', root
|
||||||
boardID = link.pathname.split('/')[1]
|
boardID = link.pathname.split('/')[1]
|
||||||
postID = link.hash[2..]
|
postID = link.hash[2..]
|
||||||
index = root.dataset.clone
|
index = root.dataset.clone
|
||||||
|
|||||||
@ -25,7 +25,7 @@ Navigate =
|
|||||||
post: ->
|
post: ->
|
||||||
# We don't need to reload the thread inside the thread
|
# We don't need to reload the thread inside the thread
|
||||||
return if g.VIEW is 'thread' and @thread.ID is g.THREADID
|
return if g.VIEW is 'thread' and @thread.ID is g.THREADID
|
||||||
postlink = $ 'a[title="Highlight this post"]', @nodes.info
|
postlink = $ 'a[title="Link to this post"]', @nodes.info
|
||||||
$.on postlink, 'click', Navigate.navigate
|
$.on postlink, 'click', Navigate.navigate
|
||||||
|
|
||||||
return unless Conf['Quote Hash Navigation']
|
return unless Conf['Quote Hash Navigation']
|
||||||
|
|||||||
@ -18,13 +18,13 @@
|
|||||||
</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=#{"/#{boardID}/thread/#{threadID}#p#{postID}"} title='Highlight this post'>No.</a>
|
<a href=#{"/#{boardID}/thread/#{threadID}#p#{postID}"} title='Link to this post'>No.</a>
|
||||||
<a href='#{
|
<a href='#{
|
||||||
if g.VIEW is 'thread' and g.THREADID is +threadID then
|
if g.VIEW is 'thread' and g.THREADID is +threadID then
|
||||||
"javascript:quote(#{postID})"
|
"javascript:quote(#{postID})"
|
||||||
else
|
else
|
||||||
"/#{boardID}/thread/#{threadID}#q#{postID}"
|
"/#{boardID}/thread/#{threadID}#q#{postID}"
|
||||||
}' 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>
|
||||||
|
|||||||
@ -36,7 +36,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]
|
||||||
|
|
||||||
kill: ->
|
kill: ->
|
||||||
|
|||||||
@ -112,7 +112,7 @@ Gallery =
|
|||||||
target: '_blank'
|
target: '_blank'
|
||||||
title: title
|
title: title
|
||||||
thumb.dataset.id = Gallery.images.length
|
thumb.dataset.id = Gallery.images.length
|
||||||
thumb.dataset.post = $('a[title="Highlight this post"]', post.nodes.info).href
|
thumb.dataset.post = $('a[title="Link to this post"]', post.nodes.info).href
|
||||||
|
|
||||||
thumbImg = post.file.thumb.cloneNode false
|
thumbImg = post.file.thumb.cloneNode false
|
||||||
thumbImg.style.cssText = ''
|
thumbImg.style.cssText = ''
|
||||||
|
|||||||
@ -87,7 +87,7 @@ QR =
|
|||||||
QR.status()
|
QR.status()
|
||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
$.on $('a[title="Quote this post"]', @nodes.info), 'click', QR.quote
|
$.on $('a[title="Reply to this post"]', @nodes.info), 'click', QR.quote
|
||||||
|
|
||||||
persist: ->
|
persist: ->
|
||||||
return unless QR.postingIsEnabled
|
return unless QR.postingIsEnabled
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user