Hide download photo when downloadable is disabled

This commit is contained in:
Tobias Reich 2014-08-17 20:09:42 +02:00
parent b66bdce28d
commit 0cf8e97190
2 changed files with 3 additions and 5 deletions

View File

@ -223,10 +223,8 @@ contextMenu = {
function() { photo.getArchive(photoID) }
];
items = [
["<a class='icon-resize-full'></a> Full Photo", 0],
["<a class='icon-circle-arrow-down'></a> Download", 1]
];
items = [["<a class='icon-resize-full'></a> Full Photo", 0]];
if ((album.json&&album.json.downloadable&&album.json.downloadable==="1"&&lychee.publicMode)||!lychee.publicMode) items.push(["<a class='icon-circle-arrow-down'></a> Download", 1]);
contextMenu.show(items, mouse_x, mouse_y, "right");

File diff suppressed because one or more lines are too long