Fix edit link in catalog.

This commit is contained in:
ccd0 2016-02-14 13:54:10 -08:00
parent 7c603e5e27
commit dbf2911891

View File

@ -11,13 +11,15 @@ QR.oekaki =
Menu.menu.addEntry Menu.menu.addEntry
el: a el: a
order: 95 order: 95
open: ({file}) -> open: (post) ->
QR.oekaki.post = post
{file} = post
!!file and (file.isImage or file.isVideo) !!file and (file.isImage or file.isVideo)
editFile: -> editFile: ->
return unless QR.postingIsEnabled return unless QR.postingIsEnabled
QR.quote.call @ {post} = QR.oekaki
post = Get.postFromNode @ QR.quote.call post.nodes.root
{isVideo} = post.file {isVideo} = post.file
currentTime = post.file.fullImage?.currentTime or 0 currentTime = post.file.fullImage?.currentTime or 0
CrossOrigin.file post.file.url, (blob) -> CrossOrigin.file post.file.url, (blob) ->