From dbf291189130563d357bb973f18c7d6dcf64cf82 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 14 Feb 2016 13:54:10 -0800 Subject: [PATCH] Fix edit link in catalog. --- src/Posting/QR.oekaki.coffee | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Posting/QR.oekaki.coffee b/src/Posting/QR.oekaki.coffee index b7a6fc0ce..808f27858 100644 --- a/src/Posting/QR.oekaki.coffee +++ b/src/Posting/QR.oekaki.coffee @@ -11,13 +11,15 @@ QR.oekaki = Menu.menu.addEntry el: a order: 95 - open: ({file}) -> + open: (post) -> + QR.oekaki.post = post + {file} = post !!file and (file.isImage or file.isVideo) editFile: -> return unless QR.postingIsEnabled - QR.quote.call @ - post = Get.postFromNode @ + {post} = QR.oekaki + QR.quote.call post.nodes.root {isVideo} = post.file currentTime = post.file.fullImage?.currentTime or 0 CrossOrigin.file post.file.url, (blob) ->