Prevent errors from edit link in threads with posting disabled (i.e. archived threads).
This commit is contained in:
parent
832fb65cf5
commit
0e1863aa39
@ -284,7 +284,6 @@ QR =
|
|||||||
quote: (e) ->
|
quote: (e) ->
|
||||||
e?.preventDefault()
|
e?.preventDefault()
|
||||||
return unless QR.postingIsEnabled
|
return unless QR.postingIsEnabled
|
||||||
|
|
||||||
sel = d.getSelection()
|
sel = d.getSelection()
|
||||||
post = Get.postFromNode @
|
post = Get.postFromNode @
|
||||||
text = if post.board.ID is g.BOARD.ID then ">>#{post}\n" else ">>>/#{post.board}/#{post}\n"
|
text = if post.board.ID is g.BOARD.ID then ">>#{post}\n" else ">>>/#{post.board}/#{post}\n"
|
||||||
|
|||||||
@ -19,6 +19,7 @@ QR.oekaki =
|
|||||||
$.on link, 'click', QR.oekaki.editFile
|
$.on link, 'click', QR.oekaki.editFile
|
||||||
|
|
||||||
editFile: ->
|
editFile: ->
|
||||||
|
return unless QR.postingIsEnabled
|
||||||
post = Get.postFromNode @
|
post = Get.postFromNode @
|
||||||
CrossOrigin.file post.file.url, (blob) ->
|
CrossOrigin.file post.file.url, (blob) ->
|
||||||
QR.openPost()
|
QR.openPost()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user