From 7deab0fdb9058d61f9f2a4fbfcf411684fac5e48 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 15 May 2017 12:54:00 -0700 Subject: [PATCH] Add direct link to context menu --- src/scripts/contextMenu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/contextMenu.js b/src/scripts/contextMenu.js index 7a9904f..71bda7b 100644 --- a/src/scripts/contextMenu.js +++ b/src/scripts/contextMenu.js @@ -161,6 +161,7 @@ contextMenu.photo = function(photoID, e) { // in order to keep the selection let items = [ + { title: build.iconic('fullscreen-enter') + 'Copy Link', fn: () => window.prompt("Copy to clipboard: Ctrl+C (on PC) Cmd+C (on Mac), Enter", photo.getDirectLink()) }, { title: build.iconic('star') + 'Star', fn: () => photo.setStar([ photoID ]) }, { title: build.iconic('tag') + 'Tags', fn: () => photo.editTags([ photoID ]) }, { }, @@ -347,4 +348,4 @@ contextMenu.close = function() { $('.photo.active, .album.active').removeClass('active') if (visible.multiselect()) multiselect.close() -} \ No newline at end of file +}