Prevent errors from edit link in threads with posting disabled (i.e. archived threads).

This commit is contained in:
ccd0 2015-10-25 21:34:56 -07:00
parent 832fb65cf5
commit 0e1863aa39
2 changed files with 1 additions and 1 deletions

View File

@ -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"

View File

@ -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()