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) ->
|
||||
e?.preventDefault()
|
||||
return unless QR.postingIsEnabled
|
||||
|
||||
sel = d.getSelection()
|
||||
post = Get.postFromNode @
|
||||
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
|
||||
|
||||
editFile: ->
|
||||
return unless QR.postingIsEnabled
|
||||
post = Get.postFromNode @
|
||||
CrossOrigin.file post.file.url, (blob) ->
|
||||
QR.openPost()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user