Add direct link to context menu

This commit is contained in:
Michael 2017-05-15 12:54:00 -07:00 committed by GitHub
parent 27f207dcba
commit 7deab0fdb9

View File

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